Skip to content

Commit

Permalink
RateLimitedTest-test-scenario-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EgeCaner committed Feb 24, 2025
1 parent 2618aed commit 8e79a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cairo/crates/contracts/tests/libs/test_rate_limited.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn test_ctor_should_panic_when_low_capacity() {
let rate_limited_contract = declare("MockRateLimited").unwrap();
let owner = starknet::contract_address_const::<'OWNER'>();
let mut ctor_calldata: Array<felt252> = array![];
(RateLimitedComponent::DURATION - 1).serialize(ref ctor_calldata);
(RateLimitedComponent::DURATION.into() - 1_u256).serialize(ref ctor_calldata);
owner.serialize(ref ctor_calldata);
rate_limited_contract.deploy(@ctor_calldata).unwrap();
}
Expand Down

0 comments on commit 8e79a55

Please sign in to comment.