mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-02 13:53:07 +00:00
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:
commit
57ea64e303
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user