diff --git a/package.json b/package.json index 86e49956..83ad6e52 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build": "pnpm -r run build", "build:esm": "pnpm -r run build:esm", "start": "node src/lib/cli/alto.js run", - "dev": "pnpm -r run dev", + "dev": "nodemon --ext ts,js,json --watch src --exec DOTENV_CONFIG_PATH=$(pwd)/.env ts-node --project src/tsconfig.json -r tsconfig-paths/register src/cli/alto.ts run", "test": "pnpm -r --workspace-concurrency 1 test --verbose=true", "test:spec": "./test/spec-tests/run-spec-tests.sh", "lint": "biome check .", diff --git a/src/rpc/estimation/gasEstimationsV07.ts b/src/rpc/estimation/gasEstimationsV07.ts index bf07fab8..3dcc5b14 100644 --- a/src/rpc/estimation/gasEstimationsV07.ts +++ b/src/rpc/estimation/gasEstimationsV07.ts @@ -183,6 +183,7 @@ export class GasEstimatorV07 { minGas, targetOp, queuedOps, + stateOverrides, simulateHandleOpLastResult }: { entryPoint: Address @@ -190,6 +191,7 @@ export class GasEstimatorV07 { minGas: bigint targetOp: UserOperationV07 queuedOps: UserOperationV07[] + stateOverrides: StateOverrides simulateHandleOpLastResult: SimulateHandleOpResult<"execution"> }): Promise { const maxRetries = 3 @@ -211,7 +213,8 @@ export class GasEstimatorV07 { let cause = await this.callPimlicoEntryPointSimulations({ entryPoint, - entryPointSimulationsCallData: [simulateCallData] + entryPointSimulationsCallData: [simulateCallData], + stateOverrides }) cause = cause.map((data: Hex) => { @@ -283,7 +286,7 @@ export class GasEstimatorV07 { queuedUserOperations }) - let cause + let cause: readonly Hex[] if (this.config.chainType === "hedera") { // due to Hedera specific restrictions, we can't combine these two calls. @@ -355,7 +358,8 @@ export class GasEstimatorV07 { targetOp: userOperation, queuedOps: queuedUserOperations, simulateHandleOpLastResult: - simulateHandleOpLastResult as SimulateHandleOpResult<"execution"> + simulateHandleOpLastResult as SimulateHandleOpResult<"execution">, + stateOverrides }) }