mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user