Skip to content

Commit

Permalink
fix: fix missing outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming committed May 10, 2024
1 parent 47c8508 commit 919c4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine/src/vaults/impl/nexa/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function buildSignatures(encodedTx: IEncodedTxNexa, dbAccountAddress: string) {
new BN(0),
);

const fee = new BN(gas || estimateFee(encodedTx));
const fee = new BN(gas || estimateFee(inputs.length, outputs));
const available = inputAmount.sub(fee);
if (available.lt(new BN(0))) {
console.error(inputAmount.toString(), fee.toString());
Expand Down

0 comments on commit 919c4a3

Please sign in to comment.