Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy estimations by default always #371

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading