Skip to content

Commit

Permalink
Merge pull request #371 from pimlicolabs/default-deploy
Browse files Browse the repository at this point in the history
Deploy estimations by default always
  • Loading branch information
plusminushalf authored Dec 9, 2024
2 parents ea121ff + 0c5e7c2 commit 52395dd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/cli/config/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export const debugOptions: CliCommandOptions<IDebugArgsInput> = {
"Should the bundler deploy the simulations contract on startup",
type: "boolean",
require: true,
default: false
default: true
},
tenderly: {
description: "RPC url follows the tenderly format",
Expand Down
10 changes: 10 additions & 0 deletions src/cli/deploySimulationsContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ export const deploySimulationsContract = async ({
)
}

if (args.entrypointSimulationContract) {
const simulations = args.entrypointSimulationContract
const simulationsCode = await publicClient.getCode({
address: simulations
})
if (simulationsCode !== undefined && simulationsCode !== "0x") {
return args.entrypointSimulationContract
}
}

const walletClient = createWalletClient({
transport: http(args.rpcUrl),
account: utilityPrivateKey
Expand Down
15 changes: 8 additions & 7 deletions src/executor/senderManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,14 @@ export class SenderManager {
},
"utility wallet has insufficient balance to refill wallets"
)
throw new Error(
`utility wallet ${
this.utilityAccount.address
} has insufficient balance ${formatEther(
utilityWalletBalance
)} < ${formatEther(totalBalanceMissing)}`
)
return
// throw new Error(
// `utility wallet ${
// this.utilityAccount.address
// } has insufficient balance ${formatEther(
// utilityWalletBalance
// )} < ${formatEther(totalBalanceMissing)}`
// )
}

if (Object.keys(balancesMissing).length > 0) {
Expand Down

0 comments on commit 52395dd

Please sign in to comment.