Why is every call reverting ? #3180
Jain-Sameer
started this conversation in
General
Replies: 1 comment 13 replies
-
Patrick explained this stuff in the course, and it is obvious you don't understand it. When you set I will advice that you go at extremely slow pace for that section as it is very technical. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While doing the DeFi section, I am on the start of the Statefull Fuzz Testing.
My code is behaving very weird.
When I use,
revert_on_fail = false
, the code doesn't reach thedepositCollateral
function. But whenrevert_on_fail = true
, the code behaves as expected.while the option is set to
false
, I don't get any other function expect the test function inside the staticall tree.also, when running the test -
[PASS] invariant_protocolMustHaveMoreValueThanTotalSupply() (runs: 128, calls: 16384, reverts: 16384) Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 461.51ms (458.87ms CPU time)
This is what I get. Shouldn't be case, at least some of the calls shouldn't revert.
Beta Was this translation helpful? Give feedback.
All reactions