From 58b161e237573c37b6462e7a9141687434f6da13 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 3 Oct 2022 20:13:01 +0200 Subject: [PATCH] load script and signature from db --- cashu/wallet/cli.py | 26 ++++++++++++++------------ cashu/wallet/crud.py | 25 ++++++++++++++++++++----- 2 files changed, 34 insertions(+), 17 deletions(-) diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index 8891807..09605bb 100755 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -124,7 +124,7 @@ async def send(ctx, amount: int, lock: str): @cli.command("receive", help="Receive coins.") @click.argument("coin", type=str) -@click.option("--unlock", "-u", default=None, help="Unlock coins.", type=str) +@click.option("--lock", "-l", default=None, help="Unlock coins.", type=str) @click.pass_context @coro async def receive(ctx, coin: str, unlock: str): @@ -132,11 +132,16 @@ async def receive(ctx, coin: str, unlock: str): wallet.load_mint() wallet.status() if unlock: - assert ( - len(unlock.split(":")) == 2 - ), "unlock format wrong, expected