Open fadyOne opened 1 year ago
sometimes that even put as erro = x != value "+32" and x is actually not what I sent. This time yes but sometimes I got just a random number Weird
Hi FadyOne, In fact, @LucasLvy is sneaky !
When calling "claim_points" [https://github.com/ClementCauffet/starknet-cairo-101/blob/main/contracts/ex04.cairo] the main test it does is the following :
// Checking that the value provided by the user is the one we expect // Yes, I'm sneaky let (value) = values_mapped_storage.read(user_slot); with_attr error_message("Input value is not the expected secret value") { assert value = expected_value + 32; }
where "expected_value" is the value you sent as a parameter (2615 in your example)
To solve this, you might need to focus on the "=" statement in this ! Good luck :)
It doesn't work for me here, I tried many things. Someone see what m I doing wrong please?