From 679ed56ee46d2dbe1f3d27e983833edece09494f Mon Sep 17 00:00:00 2001 From: sifnoc Date: Thu, 7 Dec 2023 13:57:15 +0000 Subject: [PATCH] fix: return a ref of empty array on un-intended fn on AggregationMerkleSumTree --- src/aggregation_merkle_sum_tree.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aggregation_merkle_sum_tree.rs b/src/aggregation_merkle_sum_tree.rs index 9dec788..34a6c96 100644 --- a/src/aggregation_merkle_sum_tree.rs +++ b/src/aggregation_merkle_sum_tree.rs @@ -35,7 +35,7 @@ impl Tree &[Node] { - &self.nodes[0] + &[] } fn nodes(&self) -> &[Vec>] { @@ -47,7 +47,7 @@ impl Tree &[Entry] { - self.mini_trees[0].entries() + &[] } fn get_entry(&self, user_index: usize) -> &Entry {