Skip to content

Commit

Permalink
fix(isolate): do not override the gas price
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Feb 23, 2025
1 parent f44c499 commit e9df79c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/evm/evm/src/inspectors/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ impl InspectorStackRefMut<'_> {

let cached_env = ecx.env.clone();

ecx.env.block.basefee = U256::ZERO;
ecx.env.tx.caller = caller;
ecx.env.tx.transact_to = transact_to;
ecx.env.tx.data = input;
Expand All @@ -594,7 +593,6 @@ impl InspectorStackRefMut<'_> {
ecx.env.tx.gas_limit =
std::cmp::min(ecx.env.tx.gas_limit, ecx.env.block.gas_limit.to());
}
ecx.env.tx.gas_price = U256::ZERO;

self.inner_context_data = Some(InnerContextData { original_origin: cached_env.tx.caller });
self.in_inner_context = true;
Expand Down

0 comments on commit e9df79c

Please sign in to comment.