diff --git a/src/gasometer.rs b/src/gasometer.rs index 143a5f38a..673687fe0 100644 --- a/src/gasometer.rs +++ b/src/gasometer.rs @@ -31,8 +31,8 @@ pub trait Gasometer: Sized { fn record_stepn( &mut self, machine: &Machine, - backend: &H, is_static: bool, + backend: &H, ) -> Result; fn record_codedeposit(&mut self, len: usize) -> Result<(), ExitError>; fn gas(&self) -> Self::Gas; @@ -58,7 +58,7 @@ impl, G> GasedMachine { loop { match self .gasometer - .record_stepn(&self.machine, handler, self.is_static) + .record_stepn(&self.machine, self.is_static, handler) { Ok(stepn) => { self.machine.state.as_mut().gas = self.gasometer.gas().into(); diff --git a/src/standard/gasometer/mod.rs b/src/standard/gasometer/mod.rs index 4b67d6fae..3e8bf18a0 100644 --- a/src/standard/gasometer/mod.rs +++ b/src/standard/gasometer/mod.rs @@ -76,8 +76,8 @@ impl<'config, S: AsRef, H: RuntimeBackend> GasometerT for Ga fn record_stepn( &mut self, machine: &Machine, - handler: &H, is_static: bool, + handler: &H, ) -> Result { self.perform(|gasometer| { let opcode = machine.peek_opcode().ok_or(ExitException::OutOfGas)?;