Various errors in OpenInvariantsTest #3261
Unanswered
mikechaban
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hello @mikechaban, I see that you ran the test with the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there. I just finished the DeFi section of the course. However, when I run
forge test
withfail_on_revert = true
, I may get theDSCEngine__BreaksHealthFactor
,panic: arithmetic underflow or overflow (0x11)
, or a different error. Here's what my terminal looks like.As you can see, I get different errors after running the same command. I do not understand why I don't get the same error - it probably has to do with the random nature of fuzzing.
When I look into the OpenInvariantsTest file, here's what I get. Again, it gives me a different error every time.
When I turn
fail_on_revert = false
, the errors disappear. Please help me understand why the errors occur and how I can fix them.You can find my repo here
Thank you in advance ❤️
Beta Was this translation helpful? Give feedback.
All reactions