diff --git a/crates/executor/src/executor.rs b/crates/executor/src/executor.rs index 1ff1f312eb..d385d80f30 100644 --- a/crates/executor/src/executor.rs +++ b/crates/executor/src/executor.rs @@ -590,7 +590,7 @@ mod tests { assert_eq!(changesets.new_bytecodes.len(), 0, "No new bytecodes"); - // check torage + // check storage let storage = &changesets.changeset.get(&account1).unwrap().storage; assert_eq!(storage.len(), 1, "Only one storage change"); assert_eq!( diff --git a/crates/executor/src/revm_wrap.rs b/crates/executor/src/revm_wrap.rs index f2febd135a..906af68a94 100644 --- a/crates/executor/src/revm_wrap.rs +++ b/crates/executor/src/revm_wrap.rs @@ -9,14 +9,14 @@ use revm::{ BlockEnv, TransactTo, TxEnv, B160, B256, U256 as evmU256, }; -/// SubState of database. Uses revm internal cache with binding to reth DbExecutor trait. +/// SubState of database. Uses revm internal cache with binding to reth StateProvider trait. pub type SubState = CacheDB>; -/// Wrapper around ExeuctorDb that implements revm database trait +/// Wrapper around StateProvider that implements revm database trait pub struct State(pub DB); impl State { - /// Create new State with generic ExecutorDb. + /// Create new State with generic StateProvider. pub fn new(db: DB) -> Self { Self(db) } @@ -31,7 +31,7 @@ impl State { &mut self.0 } - /// Consume State and return inner DbExecutable. + /// Consume State and return inner StateProvider. pub fn into_inner(self) -> DB { self.0 }