mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-21 14:34:55 +01:00
FIX: NaN expiry for ln invoices decoded locally
This commit is contained in:
parent
db1fa07f37
commit
e970cc273b
2 changed files with 3 additions and 0 deletions
|
@ -561,6 +561,8 @@ export class LightningCustodianWallet extends LegacyWallet {
|
|||
}
|
||||
}
|
||||
|
||||
if (!decoded.expiry) decoded.expiry = '3600'; // default
|
||||
|
||||
return (this.decoded_invoice_raw = decoded);
|
||||
}
|
||||
|
||||
|
|
|
@ -131,6 +131,7 @@ describe('LightningCustodianWallet', () => {
|
|||
assert.strictEqual(decodedLocally.destination, decodedRemotely.destination);
|
||||
assert.strictEqual(decodedLocally.num_satoshis, decodedRemotely.num_satoshis);
|
||||
assert.strictEqual(decodedLocally.timestamp, decodedRemotely.timestamp);
|
||||
assert.strictEqual(decodedLocally.expiry, decodedRemotely.expiry);
|
||||
assert.strictEqual(decodedLocally.payment_hash, decodedRemotely.payment_hash);
|
||||
assert.strictEqual(decodedLocally.description, decodedRemotely.description);
|
||||
assert.strictEqual(decodedLocally.cltv_expiry, decodedRemotely.cltv_expiry);
|
||||
|
|
Loading…
Add table
Reference in a new issue