Skip to content

Commit

Permalink
fix: don't overwrite the paymaster postop gas limit during estimation.
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   crates/sim/src/estimation/v0_7.rs
  • Loading branch information
mmontour1306 committed Jan 10, 2025
1 parent d776056 commit 0322561
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/sim/src/estimation/v0_7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ where
.map_err(anyhow::Error::from)?;

let pre_verification_gas = self.estimate_pre_verification_gas(&op).await?;

let full_op = op
.clone()
.into_user_operation_builder(
Expand Down Expand Up @@ -268,7 +267,6 @@ where
.verification_gas_limit(gas)
.max_fee_per_gas(fee)
.max_priority_fee_per_gas(fee)
.paymaster_post_op_gas_limit(U128::zero())
.call_gas_limit(U128::zero())
.build()
};
Expand Down Expand Up @@ -313,7 +311,6 @@ where
.max_fee_per_gas(fee)
.max_priority_fee_per_gas(fee)
.paymaster_verification_gas_limit(gas)
.paymaster_post_op_gas_limit(U128::zero())
.call_gas_limit(U128::zero())
.build()
};
Expand Down

0 comments on commit 0322561

Please sign in to comment.