Skip to content

Commit

Permalink
AA-308 Checking if another bundler already tried to deploy contracts (#…
Browse files Browse the repository at this point in the history
…227)

* Checking if another bundler already tried to deploy contracts

* lint
  • Loading branch information
shahafn authored Sep 25, 2024
1 parent 00197c6 commit 3b22c35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions packages/bundler/src/runBundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,13 @@ export async function runBundler (argv: string[], overrideExit = true): Promise<
}

if (config.rip7560) {
await deployNonceManager(provider, wallet as any)
await deployStakeManager(provider, wallet as any)
try {
await deployNonceManager(provider, wallet as any)
await deployStakeManager(provider, wallet as any)
} catch (e: any) {
console.warn(e)
if (!(e.message as string).includes('replacement fee too low') && !(e.message as string).includes('already known')) throw e
}
}

const {
Expand Down
2 changes: 1 addition & 1 deletion submodules/rip7560

0 comments on commit 3b22c35

Please sign in to comment.