Skip to content

Commit

Permalink
fix: gas limit in retry estimation (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
palace22 authored Sep 22, 2024
1 parent bca7781 commit 5ef123e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sharp-scissors-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@folks-finance/xchain-sdk": patch
---

Fixed gasLimit in retry estimation
4 changes: 3 additions & 1 deletion src/chains/evm/hub/utils/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export async function getHubRetryMessageExtraArgsAndAdapterFees(
);

const bridgeRouter = getBridgeRouterHubContract(provider, hubChain.bridgeRouterAddress);
const messageToSend = buildMessageToSend(ChainType.EVM, returnMessageBuilderParams);
const messageToSend = buildMessageToSend(ChainType.EVM, returnMessageBuilderParams, {
gasLimit: returnGasLimit,
});
const adapterFees = await bridgeRouter.read.getSendFee([messageToSend]);

return {
Expand Down

0 comments on commit 5ef123e

Please sign in to comment.