mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
wallet: mint specific amounts (#121)
* wallet: mint specific amounts * make format
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user