legacy test

This commit is contained in:
callebtc
2023-01-14 13:28:29 +01:00
parent 0e82fa5cdd
commit 0194fef619
2 changed files with 13 additions and 5 deletions

View File

@@ -40,9 +40,7 @@ class Proof(BaseModel):
class Proofs(BaseModel):
"""TODO: Use this model"""
proofs: List[Proof]
__root__: List[Proof]
class Invoice(BaseModel):
@@ -79,6 +77,11 @@ class BlindedMessages(BaseModel):
blinded_messages: List[BlindedMessage] = []
class PostMintResponseLegacy(BaseModel):
# NOTE: Backwards compability for < 0.7.1 where we used a simple list and not a key-value dictionary
__root__: List[BlindedSignature] = []
class PostMintResponse(BaseModel):
promises: List[BlindedSignature] = []