Skip to content

Commit

Permalink
Add alias for TrieMerkleProof
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-D-coder committed Sep 17, 2024
1 parent 70692ca commit 0fbf051
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/merkle_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -18,6 +18,8 @@ use super::hash::DIGEST_LENGTH;

const RADIX: usize = 256;

pub type TrieMerkleProof = casper_types::global_state::TrieMerkleProof<Key, StoredValue>;

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Pointer {
LeafPointer(Digest),
Expand Down Expand Up @@ -321,7 +323,7 @@ impl<'a, 'b> QueryInfo<'a, 'b> {
}

pub fn process_query_proofs<'a>(
proofs: &'a [TrieMerkleProof<Key, StoredValue>],
proofs: &'a [TrieMerkleProof],
path: &[String],
) -> Result<QueryInfo<'a, 'a>, ValidationError> {
if proofs.len() != path.len() + 1 {
Expand Down

0 comments on commit 0fbf051

Please sign in to comment.