diff --git a/crates/interpreter/src/instructions/contract.rs b/crates/interpreter/src/instructions/contract.rs index acb896f4a0..c3f701f28a 100644 --- a/crates/interpreter/src/instructions/contract.rs +++ b/crates/interpreter/src/instructions/contract.rs @@ -469,7 +469,7 @@ pub fn call(interpreter: &mut Interpreter, host: & interpreter.instruction_result = InstructionResult::FatalExternalError; return; }; - let Some(mut gas_limit) = calc_call_gas::( + let Some(mut gas_limit) = calc_call_gas::( interpreter, is_cold, has_transfer, @@ -520,7 +520,7 @@ pub fn call_code(interpreter: &mut Interpreter, ho return; }; - let Some(mut gas_limit) = calc_call_gas::( + let Some(mut gas_limit) = calc_call_gas::( interpreter, is_cold, value != U256::ZERO, @@ -571,7 +571,7 @@ pub fn delegate_call(interpreter: &mut Interpreter return; }; let Some(gas_limit) = - calc_call_gas::(interpreter, is_cold, false, false, local_gas_limit) + calc_call_gas::(interpreter, is_cold, false, false, local_gas_limit) else { return; }; @@ -613,7 +613,7 @@ pub fn static_call(interpreter: &mut Interpreter, }; let Some(gas_limit) = - calc_call_gas::(interpreter, is_cold, false, false, local_gas_limit) + calc_call_gas::(interpreter, is_cold, false, false, local_gas_limit) else { return; }; diff --git a/crates/interpreter/src/instructions/contract/call_helpers.rs b/crates/interpreter/src/instructions/contract/call_helpers.rs index 8746f2ec48..5570efe3ac 100644 --- a/crates/interpreter/src/instructions/contract/call_helpers.rs +++ b/crates/interpreter/src/instructions/contract/call_helpers.rs @@ -2,7 +2,6 @@ use crate::{ gas, interpreter::Interpreter, primitives::{Bytes, Spec, SpecId::*, U256}, - Host, }; use core::{cmp::min, ops::Range}; @@ -43,7 +42,7 @@ pub fn resize_memory_and_return_range( } #[inline] -pub fn calc_call_gas( +pub fn calc_call_gas( interpreter: &mut Interpreter, is_cold: bool, has_transfer: bool,