Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Guantong committed Jan 5, 2023
1 parent 8a8ca73 commit 382ab4b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions primitives/runtime/src/storage_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,8 @@ pub fn craft_valid_storage_proof() -> (sp_core::H256, StorageProof) {
state_version,
));
let root = backend.storage_root(std::iter::empty(), state_version).0;
let proof = StorageProof::new(
prove_read(backend, &[&b"key1"[..], &b"key2"[..], &b"key4"[..], &b"key22"[..]])
.unwrap()
.iter_nodes(),
);
let proof =
prove_read(backend, &[&b"key1"[..], &b"key2"[..], &b"key4"[..], &b"key22"[..]]).unwrap();

(root, proof)
}
Expand Down

0 comments on commit 382ab4b

Please sign in to comment.