File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
batcher/aligned-sdk/src/sdk Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,7 @@ impl IsMerkleTreeBackend for Hash32 {
5757 type Node = [ u8 ; 32 ] ;
5858
5959 fn hash_data ( leaf : & Self :: Data ) -> Self :: Node {
60- let mut hasher = Keccak256 :: new ( ) ;
61- hasher. update ( leaf. 0 ) ;
62- hasher. finalize ( ) . into ( )
63- }
64-
65- fn hash_leaves ( leaves : & [ Self :: Data ] ) -> Vec < Self :: Node > {
66- leaves. iter ( ) . map ( |l| l. 0 ) . collect ( )
60+ leaf. 0
6761 }
6862
6963 fn hash_new_parent ( child_1 : & Self :: Node , child_2 : & Self :: Node ) -> Self :: Node {
@@ -190,7 +184,9 @@ pub async fn is_proof_verified_in_aggregation_mode(
190184 . iter ( )
191185 . map ( |p| Hash32 ( * p) )
192186 . collect ( ) ;
193- let merkle_tree: MerkleTree < Hash32 > = MerkleTree :: build ( & proof_commitments) . unwrap ( ) ;
187+ let Some ( merkle_tree) = MerkleTree :: < Hash32 > :: build ( & proof_commitments) else {
188+ continue ;
189+ } ;
194190
195191 if proof_commitments. contains ( & Hash32 ( verification_data. commitment ( ) ) ) {
196192 return if merkle_tree. root == merkle_root {
You can’t perform that action at this time.
0 commit comments