Skip to content

Commit

Permalink
Remove gasLimit on unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlotfi authored and mrlotfi committed Jul 26, 2024
1 parent e461daa commit d22ad84
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/driver/unlocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export class Unlocker {

private async fetchAndProgressUnlocks() {
try {
logger.info(`Running fetchAndProgressUnlocks`);
if (Object.keys(this.locks).length > 1000) {
throw new Error('Too many ongoing unlocks... Waiting for some of them to finish unlocking');
}
Expand Down Expand Up @@ -611,7 +610,6 @@ export class Unlocker {

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

0 comments on commit d22ad84

Please sign in to comment.