wallet: mint specific amounts (#121)

* wallet: mint specific amounts

* make format
This commit is contained in:
calle
2023-03-04 21:49:39 +01:00
committed by GitHub
parent 2d66aeb79c
commit 23f2b58430
3 changed files with 66 additions and 9 deletions

View File

@@ -376,7 +376,7 @@ class Ledger:
for amount in amounts:
if amount not in [2**i for i in range(MAX_ORDER)]:
raise Exception(f"Can only mint amounts up to {2**MAX_ORDER}.")
raise Exception(f"Can only mint amounts with 2^n up to {2**MAX_ORDER}.")
promises = await self._generate_promises(B_s, keyset)
return promises