Unable to set up Invariant Testing for the DeFi section of the course. #3173
Jain-Sameer
started this conversation in
General
Replies: 1 comment 6 replies
-
increase the runs value to 1000 in your [invariant]
runs = 1000
depth = 128
fail_on_revert = false |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the code . When i try to run the command :
forge test --mt invariant_protocolMustHaveMoreValueThanTotalSupply
I get the error saying :
[FAIL: failed to set up invariant testing environment: panic: assertion failed (0x01)]
I have tried the basic things like
forge clean && forge test
. Also, after usingconsole.log
before and after thetargetContract
statement in thesetUp
, and it logs to the console each time but nothing abouttargetContract
in the staticall tree. I usedfoundryup
before that, the error was[FAIL: failed to set up invariant testing environment: No contracts to fuzz]
.Beta Was this translation helpful? Give feedback.
All reactions