Skip to content

Commit

Permalink
fix(witness): storage proof target on blinded (#10657)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk authored Sep 2, 2024
1 parent d5c6f1a commit 5b97ace
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/trie/trie/src/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@ where
// Right pad the target with 0s.
let mut padded_key = key.pack();
padded_key.resize(32, 0);
let target = (hashed_address, Vec::from([B256::from_slice(&padded_key)]));
let mut proof = Proof::new(
self.trie_cursor_factory.clone(),
self.hashed_cursor_factory.clone(),
)
.with_prefix_sets_mut(self.prefix_sets.clone())
.with_targets(HashMap::from([(B256::from_slice(&padded_key), Vec::new())]))
.with_targets(HashMap::from([target]))
.storage_multiproof(hashed_address)?;

// The subtree only contains the proof for a single target.
Expand Down

0 comments on commit 5b97ace

Please sign in to comment.