mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 10:34:20 +01:00
* add expiry to quotes, closes #385 * fix wallet deprecated mock with expiry * expiry is an optional field
This commit is contained in:
@@ -182,6 +182,7 @@ async def test_mint_quote(ledger: Ledger):
|
||||
assert result["request"]
|
||||
invoice = bolt11.decode(result["request"])
|
||||
assert invoice.amount_msat == 100 * 1000
|
||||
assert result["expiry"] == invoice.expiry
|
||||
|
||||
# get mint quote again from api
|
||||
response = httpx.get(
|
||||
@@ -243,6 +244,8 @@ async def test_melt_quote_internal(ledger: Ledger, wallet: Wallet):
|
||||
assert result["amount"] == 64
|
||||
# TODO: internal invoice, fee should be 0
|
||||
assert result["fee_reserve"] == 0
|
||||
invoice_obj = bolt11.decode(request)
|
||||
assert result["expiry"] == invoice_obj.expiry
|
||||
|
||||
# get melt quote again from api
|
||||
response = httpx.get(
|
||||
|
||||
Reference in New Issue
Block a user