Skip to content

Commit

Permalink
Checking if another bundler already tried to deploy contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
shahafn committed Sep 25, 2024
1 parent 00197c6 commit df25808
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions packages/bundler/src/runBundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,16 @@ 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.includes('replacement fee too low') && !e.message.includes('already known')) throw e
}
}


const {
entryPoint
} = await connectContracts(wallet, !config.rip7560)
Expand Down
2 changes: 1 addition & 1 deletion submodules/rip7560

0 comments on commit df25808

Please sign in to comment.