Wallet: fix secret derivation & new CLI command cashu selfpay (#331)

* refactor wallet restore tests

* fix secret derivation

* selfpay to refresh tokens
This commit is contained in:
callebtc
2023-10-03 18:34:12 +02:00
committed by GitHub
parent 0959314786
commit 1149533e82
7 changed files with 403 additions and 313 deletions

View File

@@ -46,12 +46,11 @@ async def get_mint_wallet(ctx: Context, force_select: bool = False):
mint_url = wallet.url
# load this mint_url into a wallet
mint_wallet = Wallet(
mint_wallet = await Wallet.with_db(
mint_url,
os.path.join(settings.cashu_dir, ctx.obj["WALLET_NAME"]),
name=wallet.name,
)
# await mint_wallet.load_mint()
await mint_wallet.load_proofs(reload=True)
return mint_wallet