Skip to content

Commit

Permalink
Fetch evm overrides properly for unlock on evm
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlotfi authored and mrlotfi committed Sep 19, 2024
1 parent f6902a1 commit d3a5a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/unlocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ export class Unlocker {
const swiftContract = this.walletsHelper.getWriteContract(sourceChain);

const networkFeeData = await this.evmProviders[sourceChain].getFeeData();
let overrides = await getSuggestedOverrides(destChain, networkFeeData);
let overrides = await getSuggestedOverrides(sourceChain, networkFeeData);
let tx: ethers.TransactionResponse;
if (isBatch) {
tx = await swiftContract.unlockBatch(hexToUint8Array(signedVaa), overrides);
Expand Down

0 comments on commit d3a5a9f

Please sign in to comment.