Skip to content

Commit

Permalink
Deploy estimations by default always
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Dec 8, 2024
1 parent ea121ff commit b0a2e67
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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

0 comments on commit b0a2e67

Please sign in to comment.