Skip to content

Commit

Permalink
chore: EvmStateProvider doc improvements (#10735)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected authored Sep 5, 2024
1 parent 0c2b496 commit 399c270
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/revm/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ use revm::{
Database,
};

/// A helper trait responsible for providing that necessary state for the EVM execution.
/// A helper trait responsible for providing state necessary for EVM execution.
///
/// This servers as the data layer for [Database].
/// This serves as the data layer for [`Database`].
pub trait EvmStateProvider: Send + Sync {
/// Get basic account information.
///
/// Returns `None` if the account doesn't exist.
/// Returns [`None`] if the account doesn't exist.
fn basic_account(&self, address: Address) -> ProviderResult<Option<Account>>;

/// Get the hash of the block with the given number. Returns `None` if no block with this number
/// exists.
/// Get the hash of the block with the given number. Returns [`None`] if no block with this
/// number exists.
fn block_hash(&self, number: BlockNumber) -> ProviderResult<Option<B256>>;

/// Get account code by its hash
/// Get account code by hash.
fn bytecode_by_hash(
&self,
code_hash: B256,
) -> ProviderResult<Option<reth_primitives::Bytecode>>;

/// Get storage of given account.
/// Get storage of the given account.
fn storage(
&self,
account: Address,
Expand Down

0 comments on commit 399c270

Please sign in to comment.