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

Fix comment for gas extern in Wasm runtime #8101

Merged
merged 1 commit into from
Mar 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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