poetry commands, docker, click

This commit is contained in:
callebtc
2022-09-15 02:48:22 +03:00
parent b2f8a9824d
commit 17ba6e0841
6 changed files with 59 additions and 86 deletions

View File

@@ -139,6 +139,7 @@ class Wallet(LedgerAPI):
return await self.split(proofs, sum(p["amount"] for p in proofs))
async def split(self, proofs, amount):
assert len(proofs) > 0, ValueError("no proofs provided.")
fst_proofs, snd_proofs = super().split(proofs, amount)
if len(fst_proofs) == 0 and len(snd_proofs) == 0:
raise Exception("received no splits")