Skip to content

Commit

Permalink
Remove unnecessary mod_floor
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Apr 27, 2023
1 parent fa3ad65 commit 590cf59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hint_processor/builtin_hint_processor/math_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,7 @@ pub fn is_addr_bounded(
let addr_bound = constants
.get(ADDR_BOUND)
.ok_or(HintError::MissingConstant(ADDR_BOUND))?
.to_biguint()
.mod_floor(&prime);
.to_biguint();

let lower_bound = BigUint::one() << 250_u32;
let upper_bound = BigUint::one() << 251_u32;
Expand Down

0 comments on commit 590cf59

Please sign in to comment.