Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix comment for gas extern in Wasm runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lexfrl committed Mar 13, 2018
1 parent 7e948a0 commit 5bfd705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethcore/wasm/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5bfd705

Please sign in to comment.