fix: nwc history
This commit is contained in:
@ -60,6 +60,8 @@ interface ListTransactionsResponse {
|
|||||||
amount: number;
|
amount: number;
|
||||||
feed_paid: number;
|
feed_paid: number;
|
||||||
settled_at?: number;
|
settled_at?: number;
|
||||||
|
created_at: number;
|
||||||
|
expires_at: number;
|
||||||
metadata?: object;
|
metadata?: object;
|
||||||
}>;
|
}>;
|
||||||
}
|
}
|
||||||
@ -227,7 +229,7 @@ export class NostrConnectWallet implements LNWallet {
|
|||||||
memo: a.description,
|
memo: a.description,
|
||||||
amount: a.amount,
|
amount: a.amount,
|
||||||
fees: a.feed_paid,
|
fees: a.feed_paid,
|
||||||
timestamp: a.settled_at,
|
timestamp: typeof a.created_at === "string" ? new Date(a.created_at).getTime() / 1000 : a.created_at,
|
||||||
preimage: a.preimage,
|
preimage: a.preimage,
|
||||||
state: WalletInvoiceState.Paid,
|
state: WalletInvoiceState.Paid,
|
||||||
}) as WalletInvoice,
|
}) as WalletInvoice,
|
||||||
|
Reference in New Issue
Block a user