From 5c47116889e2371f24ab5254cb331119f26b7999 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 14 Mar 2018 14:27:18 +0300 Subject: [PATCH] fix comment for gas extern in Wasm runtime (#8101) --- ethcore/wasm/src/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/wasm/src/runtime.rs b/ethcore/wasm/src/runtime.rs index 4ff804c5f..4a2cf7d12 100644 --- a/ethcore/wasm/src/runtime.rs +++ b/ethcore/wasm/src/runtime.rs @@ -303,7 +303,7 @@ impl<'a> Runtime<'a> { Ok(self.gas_limit - self.gas_counter) } - /// Report gas cost with the params passed in wasm stack + /// Charges gas for the current block of execution. Returns an error in case of running out of gas. fn gas(&mut self, args: RuntimeArgs) -> Result<()> { let amount: u32 = args.nth_checked(0)?; if self.charge_gas(amount as u64) {