From dcc72b3961625dcbe659ffe805af4f9b9ba0d070 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 5 Oct 2022 19:24:06 +0200 Subject: [PATCH] fix output_data compatibility --- cashu/core/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cashu/core/base.py b/cashu/core/base.py index 9007ff0..4f7e7dd 100644 --- a/cashu/core/base.py +++ b/cashu/core/base.py @@ -116,7 +116,8 @@ class SplitRequest(BaseModel): output_data: MintRequest = None # backwards compatibility with clients < v0.2.1 outputs: MintRequest = None - def __init__(self): + def __init__(self, **data): + super().__init__(**data) self.backwards_compatibility_v021() def backwards_compatibility_v021(self):