From bb10305d0949ed7554b9efd09a5ec01ca9d07edf Mon Sep 17 00:00:00 2001 From: Namra Patel Date: Mon, 26 Dec 2022 06:41:29 -0500 Subject: [PATCH] Fix typo and rename remaining ExecutorDb to StateProvider (#608) * Fix typo * ExecuterDb -> StateProvider --- crates/executor/src/executor.rs | 2 +- crates/executor/src/revm_wrap.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 }