mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
Companion for Substrate#10915 (#5033)
* Companion for Substrate#10915
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -36,8 +36,7 @@ fn craft_known_storage_proof(input_vec: Vec<(Vec<u8>, Vec<u8>)>) -> (H256, Stora
|
||||
let vector_element_proof = StorageProof::new(
|
||||
prove_read(backend, input_vec.iter().map(|x| x.0.as_slice()))
|
||||
.unwrap()
|
||||
.iter_nodes()
|
||||
.collect(),
|
||||
.iter_nodes(),
|
||||
);
|
||||
(root, vector_element_proof)
|
||||
}
|
||||
|
||||
@@ -88,8 +88,7 @@ pub fn craft_valid_storage_proof() -> (sp_core::H256, StorageProof) {
|
||||
let proof = StorageProof::new(
|
||||
prove_read(backend, &[&b"key1"[..], &b"key2"[..], &b"key22"[..]])
|
||||
.unwrap()
|
||||
.iter_nodes()
|
||||
.collect(),
|
||||
.iter_nodes(),
|
||||
);
|
||||
|
||||
(root, proof)
|
||||
|
||||
@@ -496,7 +496,7 @@ impl<C: Chain> Client<C> {
|
||||
self.jsonrpsee_execute(move |client| async move {
|
||||
Substrate::<C>::state_prove_storage(&*client, keys, Some(at_block))
|
||||
.await
|
||||
.map(|proof| StorageProof::new(proof.proof.into_iter().map(|b| b.0).collect()))
|
||||
.map(|proof| StorageProof::new(proof.proof.into_iter().map(|b| b.0)))
|
||||
.map_err(Into::into)
|
||||
})
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user