Skip to content

Commit

Permalink
Fix decoder parsing with storage tries (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Oct 3, 2024
1 parent 9140f4b commit 69e82c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions trace_decoder/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,12 @@ fn middle<StateTrieT: StateTrie + Clone>(
.map(|acct| (acct, false))
.unwrap_or((AccountRlp::default(), true));

if born {
// Empty accounts cannot have non-empty storage,
// so we can safely insert a default trie.
storage_tries.insert(keccak_hash::keccak(addr), StorageTrie::default());
}

if born || just_access {
state_trie
.clone()
Expand Down

0 comments on commit 69e82c0

Please sign in to comment.