diff --git a/zk_prover/src/merkle_sum_tree/utils/csv_parser.rs b/zk_prover/src/merkle_sum_tree/utils/csv_parser.rs index 5df9c446..472a1929 100644 --- a/zk_prover/src/merkle_sum_tree/utils/csv_parser.rs +++ b/zk_prover/src/merkle_sum_tree/utils/csv_parser.rs @@ -30,7 +30,6 @@ pub fn parse_csv_to_entries, const N_CURRENCIES: usize, const N_B } let mut entries = Vec::new(); - let mut balances_acc: Vec = vec![BigUint::from(0_usize); N_CURRENCIES]; for result in rdr.deserialize() { let record: HashMap = result?; @@ -51,12 +50,6 @@ pub fn parse_csv_to_entries, const N_CURRENCIES: usize, const N_B balances_big_int.push(balance); } - balances_acc = balances_acc - .iter() - .zip(balances_big_int.iter()) - .map(|(x, y)| x + y) - .collect(); - let entry = Entry::new(username, balances_big_int.try_into().unwrap())?; entries.push(entry); }