You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The methods get_class_proofs, get_contract_proofs and get_contract_storage_proofs methods inside get_storage_proof are returning the proofs out of order and flattened into a single Vec. This bug occurs on this snippets of code:
let nodes:Vec<NodeHashToNodeMapping> = ContractsStorageTree::get_proofs(
&tx,
csk.contract_address,
block_number,
&csk.storage_keys,
root,
)?
.into_iter()
.flatten()
.map(|(node, node_hash)| NodeHashToNodeMapping{
node_hash,
node:ProofNode(node),
})
.collect::<HashSet<_>>()
.into_iter()
.collect();
proofs.push(NodeHashToNodeMappings(nodes));
The text was updated successfully, but these errors were encountered:
GMKrieger
changed the title
v0_8 get_storage_proof returning contracts and contract storage proofs out of order
v0_8 get_storage_proof returning proofs out of order
Dec 24, 2024
The methods
get_class_proofs
,get_contract_proofs
andget_contract_storage_proofs
methods insideget_storage_proof
are returning the proofs out of order and flattened into a single Vec. This bug occurs on this snippets of code:pathfinder/crates/rpc/src/method/get_storage_proof.rs
Lines 372 to 383 in a054a03
pathfinder/crates/rpc/src/method/get_storage_proof.rs
Lines 417 to 427 in 2097a13
pathfinder/crates/rpc/src/method/get_storage_proof.rs
Lines 469 to 486 in 2097a13
The text was updated successfully, but these errors were encountered: