Skip to content

Commit

Permalink
fix: remove stateoverride for 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Jan 2, 2025
1 parent ed3d0ae commit 6baf9b4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions crates/sim/src/estimation/v0_6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use rundler_types::{
v0_6::{UserOperation, UserOperationBuilder, UserOperationOptionalGas},
GasEstimate, UserOperation as _,
};
use rundler_utils::{authorization_utils, math};
use rundler_utils::math;
use tokio::join;

use super::{
Expand Down Expand Up @@ -71,10 +71,6 @@ where
state_override: StateOverride,
) -> Result<GasEstimate, GasEstimationError> {
self.check_provided_limits(&op)?;
let mut local_override = state_override.clone();
if let Some(au) = &op.authorization_contract {
authorization_utils::apply_7702_overrides(&mut local_override, op.sender, *au);
}

let (block_hash, _) = self
.provider
Expand All @@ -95,8 +91,8 @@ where
.build();

let verification_future =
self.estimate_verification_gas(&op, &full_op, block_hash, local_override.clone());
let call_future = self.estimate_call_gas(&op, full_op.clone(), block_hash, local_override);
self.estimate_verification_gas(&op, &full_op, block_hash, state_override.clone());
let call_future = self.estimate_call_gas(&op, full_op.clone(), block_hash, state_override);

// Not try_join! because then the output is nondeterministic if both
// verification and call estimation fail.
Expand Down

0 comments on commit 6baf9b4

Please sign in to comment.