Skip to content

Commit

Permalink
Use assert_le rather than assert_lt
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed May 8, 2022
1 parent cc13856 commit 87bc3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/starknet/space.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ func finalize_proposal{syscall_ptr : felt*, pedersen_ptr : HashBuiltin*, range_c
let (current_timestamp) = get_block_timestamp()
let (min_duration) = min_voting_duration.read()
let min_end_timestamp = proposal.start_timestamp + min_duration
assert_lt(min_end_timestamp, current_timestamp)
assert_le(min_end_timestamp, current_timestamp)
# end
# Make sure execution params match the stored hash
Expand Down

0 comments on commit 87bc3aa

Please sign in to comment.