diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index ca1d064..bb99eb8 100644 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -334,7 +334,10 @@ async def receive(ctx, token: str, lock: str): # if it was not an lnbits link if url is None: - url = input(f"Enter mint URL (default: {MINT_URL}: ") or MINT_URL + url = ( + input(f"Enter mint URL (or press enter for default: {MINT_URL}: ") + or MINT_URL + ) # and add url and keyset id to token from link extraction above if url: diff --git a/cashu/wallet/cli_helpers.py b/cashu/wallet/cli_helpers.py index 3217631..4a6a0fb 100644 --- a/cashu/wallet/cli_helpers.py +++ b/cashu/wallet/cli_helpers.py @@ -87,7 +87,7 @@ async def print_mint_balances(ctx, wallet, show_mints=False): print("") for i, (k, v) in enumerate(mint_balances.items()): print( - f"Mint {i+1}: {k} - Balance: {v['available']} sat (pending: {v['balance']-v['available']} sat)" + f"Mint {i+1}: Balance: {v['available']} sat (pending: {v['balance']-v['available']} sat) URL: {k}" ) print("") @@ -103,10 +103,10 @@ async def get_mint_wallet(ctx): await print_mint_balances(ctx, wallet, show_mints=True) - mint_nr = input( - f"Which mint do you want to use? [1-{len(mint_balances)}, default: 1] " + mint_nr = ( + input(f"Select mint [1-{len(mint_balances)}, press enter for default 1]: ") + or "1" ) - mint_nr = "1" if mint_nr == "" else mint_nr if not mint_nr.isdigit(): raise Exception("invalid input.") mint_nr = int(mint_nr)