Skip to content

Commit 399c270

Browse files
authored
chore: EvmStateProvider doc improvements (#10735)
1 parent 0c2b496 commit 399c270

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/revm/src/database.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ use revm::{
88
Database,
99
};
1010

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

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

24-
/// Get account code by its hash
24+
/// Get account code by hash.
2525
fn bytecode_by_hash(
2626
&self,
2727
code_hash: B256,
2828
) -> ProviderResult<Option<reth_primitives::Bytecode>>;
2929

30-
/// Get storage of given account.
30+
/// Get storage of the given account.
3131
fn storage(
3232
&self,
3333
account: Address,

0 commit comments

Comments
 (0)