File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ pub struct Group {
47
47
/// Hashed LeanIMT
48
48
pub tree : HashedLeanIMT < ELEMENT_SIZE , PoseidonHash > ,
49
49
}
50
- pub type MerkleProof = LeanIMTMerkleProof ;
51
50
52
51
impl Group {
53
52
/// Creates a new instance of the Group with optional initial members
Original file line number Diff line number Diff line change 1
1
use crate :: {
2
- group:: { Group , MerkleProof } ,
2
+ group:: { Group , MerkleProof , EMPTY_LEAF } ,
3
3
identity:: Identity ,
4
4
utils:: { hash, to_big_uint} ,
5
5
MAX_TREE_DEPTH , MIN_TREE_DEPTH ,
@@ -91,7 +91,7 @@ impl Proof {
91
91
if let Some ( sibling) = merkle_proof. siblings . get ( i as usize ) {
92
92
merkle_proof_siblings. push ( sibling. clone ( ) ) ;
93
93
} else {
94
- merkle_proof_siblings. push ( "0" . to_string ( ) ) ;
94
+ merkle_proof_siblings. push ( EMPTY_LEAF . to_string ( ) ) ;
95
95
}
96
96
}
97
97
You can’t perform that action at this time.
0 commit comments