From 87bc3aa8da2ca72c07fede2cdf4b927cbd1e2e9a Mon Sep 17 00:00:00 2001 From: Scott Piriou <30843220+pscott@users.noreply.github.com> Date: Sun, 8 May 2022 16:05:42 +0200 Subject: [PATCH] Use assert_le rather than assert_lt --- contracts/starknet/space.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/starknet/space.cairo b/contracts/starknet/space.cairo index 954e3fd8..3239c722 100644 --- a/contracts/starknet/space.cairo +++ b/contracts/starknet/space.cairo @@ -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