Skip to content

Commit

Permalink
feat: rm warning from csv_parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobottazzi committed Dec 11, 2023
1 parent 1764797 commit b8aceb3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions kzg_prover/src/utils/csv_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,5 @@ pub fn parse_csv_to_entries<P: AsRef<Path>, const N_ASSETS: usize, const N_BYTES
entries[i] = entry;
}

// Iterate through the balance accumulator and throw error if any balance is not in range 0, 2 ^ (8 * N_BYTES):
for balance in balances_acc {
if balance >= BigUint::from(2_usize).pow(8 * N_BYTES as u32) {
return Err(
"Accumulated balance is not in the expected range, proof generation will fail!"
.into(),
);
}
}

Ok(())
}

0 comments on commit b8aceb3

Please sign in to comment.