diff --git a/src/merkle_proof.rs b/src/merkle_proof.rs index 1e4e96c..0634ba5 100644 --- a/src/merkle_proof.rs +++ b/src/merkle_proof.rs @@ -5,7 +5,7 @@ use core::mem::MaybeUninit; use std::{boxed::Box, string::String, vec::Vec}; use casper_storage::global_state::trie_store::operations::compute_state_hash; -pub use casper_types::global_state::{TrieMerkleProof, TrieMerkleProofStep}; +pub use casper_types::global_state::TrieMerkleProofStep; use casper_types::{ bytesrepr::{self, Bytes, FromBytes, ToBytes, U8_SERIALIZED_LENGTH}, @@ -18,6 +18,8 @@ use super::hash::DIGEST_LENGTH; const RADIX: usize = 256; +pub type TrieMerkleProof = casper_types::global_state::TrieMerkleProof; + #[derive(Debug, Clone, PartialEq, Eq)] pub enum Pointer { LeafPointer(Digest), @@ -321,7 +323,7 @@ impl<'a, 'b> QueryInfo<'a, 'b> { } pub fn process_query_proofs<'a>( - proofs: &'a [TrieMerkleProof], + proofs: &'a [TrieMerkleProof], path: &[String], ) -> Result, ValidationError> { if proofs.len() != path.len() + 1 {