Skip to content

Commit a5eb01b

Browse files
fix: rename variable in block_hash method from 'code' to 'hash' (#19269)
1 parent a43345b commit a5eb01b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/revm/src/cached.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ impl<DB: DatabaseRef> Database for CachedReadsDbMut<'_, DB> {
146146
}
147147

148148
fn block_hash(&mut self, number: u64) -> Result<B256, Self::Error> {
149-
let code = match self.cached.block_hashes.entry(number) {
149+
let hash = match self.cached.block_hashes.entry(number) {
150150
Entry::Occupied(entry) => *entry.get(),
151151
Entry::Vacant(entry) => *entry.insert(self.db.block_hash_ref(number)?),
152152
};
153-
Ok(code)
153+
Ok(hash)
154154
}
155155
}
156156

0 commit comments

Comments
 (0)