Skip to content

Commit

Permalink
Fix fee too low
Browse files Browse the repository at this point in the history
  • Loading branch information
catdev2024 committed Oct 18, 2024
1 parent dba321f commit d5c6dcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/src/commands/deploy/ft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ export async function deploy(
commitTx.outputs[1].satoshis = revealTxFee;

commitTx.change(changeAddress);
if (commitTx.outputs[2] && commitTx.outputs[2].satoshi > 1) {
commitTx.outputs[2].satoshis -= 1;

if (commitTx.getChangeOutput() !== null) {
commitTx.getChangeOutput().satoshis -= 1;
}

wallet.signTx(commitTx);
Expand Down

0 comments on commit d5c6dcb

Please sign in to comment.