Merge pull request #894 from mir-protocol/fix_storage_trie_lookup

Fix code that looks for an account's storage trie
This commit is contained in:
Daniel Lubarov 2023-02-27 17:58:05 -08:00 committed by GitHub
commit 57ea64e303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,8 +156,9 @@ pub(crate) fn mpt_prover_inputs_state_trie(
} = account;
let storage_hash_only = PartialTrie::Hash(storage_root);
let merged_key = key.merge_nibbles(nibbles);
let storage_trie: &PartialTrie = storage_tries_by_state_key
.get(&key)
.get(&merged_key)
.copied()
.unwrap_or(&storage_hash_only);