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 6a8410e commit 56b806aCopy full SHA for 56b806a
crates/anvil/src/eth/backend/mem/mod.rs
@@ -2600,6 +2600,9 @@ impl Backend {
2600
code_hash: B256,
2601
block_id: Option<BlockId>,
2602
) -> Result<Option<Bytes>, BlockchainError> {
2603
+ if let Ok(code) = self.db.read().await.code_by_hash_ref(code_hash) {
2604
+ return Ok(Some(code.original_bytes()));
2605
+ }
2606
if let Some(fork) = self.get_fork() {
2607
return Ok(fork.debug_code_by_hash(code_hash, block_id).await?);
2608
}
0 commit comments