diff --git a/ethcore/wasm/src/runtime.rs b/ethcore/wasm/src/runtime.rs index bc639bea1..71fafd671 100644 --- a/ethcore/wasm/src/runtime.rs +++ b/ethcore/wasm/src/runtime.rs @@ -305,8 +305,8 @@ impl<'a> Runtime<'a> { if self.gas_counter > self.gas_limit { return Err(Error::InvalidGasState); } Ok(self.gas_limit - self.gas_counter) } - - /// Charges gas for the current block of execution. Returns an error in case of running out of gas. + + /// General gas charging extern. fn gas(&mut self, args: RuntimeArgs) -> Result<()> { let amount: u32 = args.nth_checked(0)?; if self.charge_gas(amount as u64) {