Skip to content

Commit

Permalink
fix: convert fees_paid to sats
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Dec 15, 2023
1 parent e638a1c commit 8774957
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webln/NostrWeblnProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ export class NostrWebLNProvider implements WebLNProvider, Nip07Provider {
...transaction,
// NWC uses msats - convert to sats for webln
amount: Math.floor(transaction.amount / 1000),
fees_paid: Math.floor(transaction.fees_paid / 1000),
})),
}),
);
Expand Down

0 comments on commit 8774957

Please sign in to comment.