We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a43345b commit a5eb01bCopy full SHA for a5eb01b
crates/revm/src/cached.rs
@@ -146,11 +146,11 @@ impl<DB: DatabaseRef> Database for CachedReadsDbMut<'_, DB> {
146
}
147
148
fn block_hash(&mut self, number: u64) -> Result<B256, Self::Error> {
149
- let code = match self.cached.block_hashes.entry(number) {
+ let hash = match self.cached.block_hashes.entry(number) {
150
Entry::Occupied(entry) => *entry.get(),
151
Entry::Vacant(entry) => *entry.insert(self.db.block_hash_ref(number)?),
152
};
153
- Ok(code)
+ Ok(hash)
154
155
156
0 commit comments