Skip to content

Commit

Permalink
Fix: typos (bluealloy#448)
Browse files Browse the repository at this point in the history
* Fix: typo

* Fix: typos

* Fix: typos

* Fix: typo

* Fix: typos
  • Loading branch information
omahs authored Apr 6, 2023
1 parent d3f3eb5 commit 5603ddd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions crates/revm/src/db/in_memory_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ impl From<AccountInfo> for DbAccount {

#[derive(Debug, Clone, Default, Eq, PartialEq)]
pub enum AccountState {
/// Before Spurious Dragon hardfork there were a difference between empty and not existing.
/// Before Spurious Dragon hardfork there was a difference between empty and not existing.
/// And we are flaging it here.
NotExisting,
/// EVM touched this account. For newer hardfork this means it can be clearead/removed from state.
Touched,
/// EVM cleared storage of this account, mostly by selfdestruct, we dont ask database for storage slots
/// and asume they are U256::ZERO
/// EVM cleared storage of this account, mostly by selfdestruct, we don't ask database for storage slots
/// and assume they are U256::ZERO
StorageCleared,
/// EVM didnt interacted with this account
/// EVM didn't interacted with this account
#[default]
None,
}
Expand Down
4 changes: 2 additions & 2 deletions crates/revm/src/evm_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> Transact<DB::Error>
if !disable_base_fee && effective_gas_price < basefee {
return Err(InvalidTransaction::GasPriceLessThanBasefee.into());
}
// check if priority fee is lower then max fee
// check if priority fee is lower than max fee
}

#[cfg(feature = "optional_block_gas_limit")]
Expand All @@ -96,7 +96,7 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> Transact<DB::Error>
let disable_eip3607 = false;

// EIP-3607: Reject transactions from senders with deployed code
// This EIP is introduced after london but there was no colision in past
// This EIP is introduced after london but there was no collision in past
// so we can leave it enabled always
if !disable_eip3607
&& self.data.journaled_state.account(caller).info.code_hash != KECCAK_EMPTY
Expand Down
4 changes: 2 additions & 2 deletions crates/revm/src/inspector/customprinter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Custom print inspector, it has step level information of execution.
//! It is great tool if some debugging is needed.
//! It is a great tool if some debugging is needed.
//!
use crate::interpreter::{opcode, CallInputs, CreateInputs, Gas, InstructionResult, Interpreter};
use crate::primitives::{hex, Bytes, B160};
Expand Down Expand Up @@ -138,7 +138,7 @@ mod test {
fn gas_calculation_underflow() {
use crate::primitives::hex_literal;
// https://github.com/bluealloy/revm/issues/277
// checks this usecase
// checks this use case
let mut evm = crate::new();
let mut database = crate::InMemoryDB::default();
let code: crate::primitives::Bytes = hex_literal::hex!("5b597fb075978b6c412c64d169d56d839a8fe01b3f4607ed603b2c78917ce8be1430fe6101e8527ffe64706ecad72a2f5c97a95e006e279dc57081902029ce96af7edae5de116fec610208527f9fc1ef09d4dd80683858ae3ea18869fe789ddc365d8d9d800e26c9872bac5e5b6102285260276102485360d461024953601661024a53600e61024b53607d61024c53600961024d53600b61024e5360b761024f5360596102505360796102515360a061025253607261025353603a6102545360fb61025553601261025653602861025753600761025853606f61025953601761025a53606161025b53606061025c5360a661025d53602b61025e53608961025f53607a61026053606461026153608c6102625360806102635360d56102645360826102655360ae61026653607f6101e8610146610220677a814b184591c555735fdcca53617f4d2b9134b29090c87d01058e27e962047654f259595947443b1b816b65cdb6277f4b59c10a36f4e7b8658f5a5e6f5561").to_vec().into();
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/inspector/gas.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! GasIspector. Helper Inspector to calculte gas for others.
//! GasIspector. Helper Inspector to calculate gas for others.
//!
use crate::interpreter::{CallInputs, CreateInputs, Gas, InstructionResult};
use crate::primitives::{db::Database, Bytes, B160};
Expand Down
2 changes: 1 addition & 1 deletion examples/fork_ref_transact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async fn main() -> Result<()> {
let (reserve0, reserve1, ts): (u128, u128, u32) =
abi.decode_output("getReserves", value.unwrap())?;

// Print emualted getReserves() call output
// Print emulated getReserves() call output
println!("Reserve0: {:#?}", reserve0);
println!("Reserve1: {:#?}", reserve1);
println!("Timestamp: {:#?}", ts);
Expand Down

0 comments on commit 5603ddd

Please sign in to comment.