Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Sep 16, 2022
1 parent 7ed6bc9 commit 2d6e8cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/revm/src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ impl<DB: Database> Inspector<DB> for NoOpInspector {}

#[derive(Clone, Copy, Debug, Default)]
pub struct GasInspector {
/// We now batch continual gas_block in one go, that means we need to reduce it ifwe want to get
/// correct gas remaining. Check revm/interp/contract/analyze for more information
/// We now batch continual gas_block in one go, that means we need to reduce it if we want
/// to get correct gas remaining. Check revm/interp/contract/analyze for more information
reduced_gas_block: u64,
full_gas_block: u64,
was_return: bool,
Expand Down Expand Up @@ -200,7 +200,7 @@ impl<DB: Database> Inspector<DB> for GasInspector {
}
self.was_jumpi = None;
} else if self.was_return {
// we are okey to decrement PC by one as it is return of call
// we are ok to decrement PC by one as it is return of call
let previous_pc = pc - 1;
self.full_gas_block = interp.contract.gas_block(previous_pc);
self.was_return = false;
Expand Down

0 comments on commit 2d6e8cf

Please sign in to comment.