fix wallet pubkey migration start (#259)

This commit is contained in:
callebtc
2023-06-23 20:21:21 +02:00
committed by GitHub
parent 205b5b9805
commit ae4eb43b8e
2 changed files with 6 additions and 1 deletions

View File

@@ -261,7 +261,9 @@ class WalletKeyset:
return cls( return cls(
id=row["id"], id=row["id"],
public_keys=deserialize(str(row["public_keys"])), public_keys=deserialize(str(row["public_keys"]))
if dict(row).get("public_keys")
else {},
mint_url=row["mint_url"], mint_url=row["mint_url"],
valid_from=row["valid_from"], valid_from=row["valid_from"],
valid_to=row["valid_to"], valid_to=row["valid_to"],

View File

@@ -13,6 +13,8 @@ environs==9.5.0 ; python_version >= "3.7" and python_version < "4.0"
exceptiongroup==1.1.0 ; python_version >= "3.7" and python_version < "3.11" exceptiongroup==1.1.0 ; python_version >= "3.7" and python_version < "3.11"
fastapi==0.83.0 ; python_version >= "3.7" and python_version < "4.0" fastapi==0.83.0 ; python_version >= "3.7" and python_version < "4.0"
h11==0.12.0 ; python_version >= "3.7" and python_version < "4.0" h11==0.12.0 ; python_version >= "3.7" and python_version < "4.0"
httpcore==0.15.0 ; python_version >= "3.7" and python_version < "4.0"
httpx==0.23.0 ; python_version >= "3.7" and python_version < "4.0"
idna==3.4 ; python_version >= "3.7" and python_version < "4" idna==3.4 ; python_version >= "3.7" and python_version < "4"
importlib-metadata==5.2.0 ; python_version >= "3.7" and python_version < "4.0" importlib-metadata==5.2.0 ; python_version >= "3.7" and python_version < "4.0"
iniconfig==2.0.0 ; python_version >= "3.7" and python_version < "4.0" iniconfig==2.0.0 ; python_version >= "3.7" and python_version < "4.0"
@@ -31,6 +33,7 @@ python-bitcoinlib==0.11.2 ; python_version >= "3.7" and python_version < "4.0"
python-dotenv==0.21.1 ; python_version >= "3.7" and python_version < "4.0" python-dotenv==0.21.1 ; python_version >= "3.7" and python_version < "4.0"
represent==1.6.0.post0 ; python_version >= "3.7" and python_version < "4.0" represent==1.6.0.post0 ; python_version >= "3.7" and python_version < "4.0"
requests==2.28.2 ; python_version >= "3.7" and python_version < "4" requests==2.28.2 ; python_version >= "3.7" and python_version < "4"
rfc3986[idna2008]==1.5.0 ; python_version >= "3.7" and python_version < "4.0"
secp256k1==0.14.0 ; python_version >= "3.7" and python_version < "4.0" secp256k1==0.14.0 ; python_version >= "3.7" and python_version < "4.0"
setuptools==65.7.0 ; python_version >= "3.7" and python_version < "4.0" setuptools==65.7.0 ; python_version >= "3.7" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.7" and python_version < "4.0" six==1.16.0 ; python_version >= "3.7" and python_version < "4.0"