Skip to content

Commit

Permalink
fix: add postage amount while calculating change
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcrazycoder committed Jul 27, 2023
1 parent b4d5ead commit 5be9b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/transactions/OrdTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class OrdTransaction {
const customOutsAmount = this.#outs.reduce((acc, cur) => {
return acc + cur.value;
}, 0);
const change = this.#suitableUnspent.sats - fees - customOutsAmount;
const change = this.#suitableUnspent.sats - fees - customOutsAmount - this.postage;

const networkObj = getNetwork(this.network);

Expand Down

0 comments on commit 5be9b4c

Please sign in to comment.