diff --git a/trace_decoder/src/core.rs b/trace_decoder/src/core.rs index 8bdba3dc4..5f0eeef61 100644 --- a/trace_decoder/src/core.rs +++ b/trace_decoder/src/core.rs @@ -393,6 +393,12 @@ fn middle( .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()