Skip to content

Commit 5bbc09c

Browse files
authored
fix: doc comment for set_code method in Db trait (#11087)
1 parent 31cba15 commit 5bbc09c

File tree

1 file changed

+2
-2
lines changed
  • crates/anvil/src/eth/backend

1 file changed

+2
-2
lines changed

crates/anvil/src/eth/backend/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub trait Db:
119119
Ok(())
120120
}
121121

122-
/// Sets the balance of the given address
122+
/// Sets the code of the given address
123123
fn set_code(&mut self, address: Address, code: Bytes) -> DatabaseResult<()> {
124124
let mut info = self.basic(address)?.unwrap_or_default();
125125
let code_hash = if code.as_ref().is_empty() {
@@ -133,7 +133,7 @@ pub trait Db:
133133
Ok(())
134134
}
135135

136-
/// Sets the balance of the given address
136+
/// Sets the storage value at the given slot for the address
137137
fn set_storage_at(&mut self, address: Address, slot: B256, val: B256) -> DatabaseResult<()>;
138138

139139
/// inserts a blockhash for the given number

0 commit comments

Comments
 (0)