Skip to content

Commit

Permalink
Feat/hot fix tx expiration (#8791)
Browse files Browse the repository at this point in the history
* Hot fix of transaction expiration
* Fix integration tests
  • Loading branch information
may01 authored Jan 2, 2025
1 parent 2d897b1 commit 8aee213
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ const aptos: CurrenciesData<Transaction> = {
({
errors: {},
warnings: {},
estimatedFees: BigNumber("1100"),
estimatedFees: BigNumber("900"),
amount: BigNumber("20000"),
totalSpent: BigNumber("21100"),
totalSpent: BigNumber("20900"),
}),
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export const getFee = async (
}
}

res.estimate.expirationTimestampSecs = completedTx.expiration_timestamp_secs;
gasLimit =
Number(completedTx.gas_used) ||
Math.floor(Number(transaction.options.maxGasAmount) / ESTIMATE_GAS_MUL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ const prepareTransaction = async (
transaction.options = {
...transaction.options,
maxGasAmount: estimate.maxGasAmount,
gasUnitPrice: estimate.gasUnitPrice,
sequenceNumber: estimate.sequenceNumber,
expirationTimestampSecs: estimate.expirationTimestampSecs,
};

transaction.fees = fees;
Expand Down

0 comments on commit 8aee213

Please sign in to comment.