mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-06 15:53:10 +00:00
Fix code that looks for an account's storage trie
This commit is contained in:
parent
5aafbaad49
commit
1e1e75c9b9
@ -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