From 399c27082fa7766437f3e33d16272cbb467449eb Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Thu, 5 Sep 2024 19:34:54 -0400 Subject: [PATCH] chore: EvmStateProvider doc improvements (#10735) --- crates/revm/src/database.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/revm/src/database.rs b/crates/revm/src/database.rs index 5edd76bea4da..fb5f71045ea1 100644 --- a/crates/revm/src/database.rs +++ b/crates/revm/src/database.rs @@ -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>; - /// 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>; - /// Get account code by its hash + /// Get account code by hash. fn bytecode_by_hash( &self, code_hash: B256, ) -> ProviderResult>; - /// Get storage of given account. + /// Get storage of the given account. fn storage( &self, account: Address,