diff --git a/backend/src/apis/mod.rs b/backend/src/apis/mod.rs index 8cdc087b..d1f784ea 100644 --- a/backend/src/apis/mod.rs +++ b/backend/src/apis/mod.rs @@ -20,7 +20,7 @@ where .map(|balance| BigUint::from_str_radix(balance, 10).unwrap()) .collect(); - let entry: Entry = Entry::new(username, balances.try_into().unwrap()).unwrap(); + let entry: Entry = Entry::new(username, balances.try_into().unwrap()); // Convert Fp to U256 let hash_str = format!("{:?}", entry.compute_leaf().hash); diff --git a/zk_prover/src/circuits/tests.rs b/zk_prover/src/circuits/tests.rs index cab5e154..6eb721a6 100644 --- a/zk_prover/src/circuits/tests.rs +++ b/zk_prover/src/circuits/tests.rs @@ -172,8 +172,7 @@ mod test { let invalid_leaf_balances = [1000.to_biguint().unwrap(), 1000.to_biguint().unwrap()]; // invalidate user entry - let invalid_entry = - Entry::new(circuit.entry.username().to_string(), invalid_leaf_balances).unwrap(); + let invalid_entry = Entry::new(circuit.entry.username().to_string(), invalid_leaf_balances); circuit.entry = invalid_entry; diff --git a/zk_prover/src/merkle_sum_tree/tests.rs b/zk_prover/src/merkle_sum_tree/tests.rs index b79fb22d..a14a99e2 100644 --- a/zk_prover/src/merkle_sum_tree/tests.rs +++ b/zk_prover/src/merkle_sum_tree/tests.rs @@ -53,8 +53,7 @@ mod test { let invalid_entry = Entry::new( "AtwIxZHo".to_string(), [35479.to_biguint().unwrap(), 35479.to_biguint().unwrap()], - ) - .unwrap(); + ); let invalid_entry = invalid_entry; let mut proof_invalid_1 = proof.clone(); proof_invalid_1.entry = invalid_entry;