From 5bfd7057b54bfe8ffec708c5ceb2ac1ae9ffba26 Mon Sep 17 00:00:00 2001 From: fro Date: Tue, 13 Mar 2018 16:16:07 +0300 Subject: [PATCH] fix comment for gas extern in Wasm runtime --- 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 4ff804c5f77..4a2cf7d1233 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) {