mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21: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:
Generated
+164
-162
File diff suppressed because it is too large
Load Diff
@@ -36,8 +36,7 @@ fn craft_known_storage_proof(input_vec: Vec<(Vec<u8>, Vec<u8>)>) -> (H256, Stora
|
|||||||
let vector_element_proof = StorageProof::new(
|
let vector_element_proof = StorageProof::new(
|
||||||
prove_read(backend, input_vec.iter().map(|x| x.0.as_slice()))
|
prove_read(backend, input_vec.iter().map(|x| x.0.as_slice()))
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.iter_nodes()
|
.iter_nodes(),
|
||||||
.collect(),
|
|
||||||
);
|
);
|
||||||
(root, vector_element_proof)
|
(root, vector_element_proof)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,8 +88,7 @@ pub fn craft_valid_storage_proof() -> (sp_core::H256, StorageProof) {
|
|||||||
let proof = StorageProof::new(
|
let proof = StorageProof::new(
|
||||||
prove_read(backend, &[&b"key1"[..], &b"key2"[..], &b"key22"[..]])
|
prove_read(backend, &[&b"key1"[..], &b"key2"[..], &b"key22"[..]])
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.iter_nodes()
|
.iter_nodes(),
|
||||||
.collect(),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
(root, proof)
|
(root, proof)
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ impl<C: Chain> Client<C> {
|
|||||||
self.jsonrpsee_execute(move |client| async move {
|
self.jsonrpsee_execute(move |client| async move {
|
||||||
Substrate::<C>::state_prove_storage(&*client, keys, Some(at_block))
|
Substrate::<C>::state_prove_storage(&*client, keys, Some(at_block))
|
||||||
.await
|
.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)
|
.map_err(Into::into)
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user