-
Hello, I am getting this "[FAIL: failed to set up invariant testing environment: panic: assertion failed (0x01)]" error when running the "Protocol must have more than Total Supply Test". The full error when I run -vvvv is as follows:
My OpenInvariantsTest.t.sol is as follows:
I have run foundryup and forge clean as suggested by a previous discussion but I get the same issues. The unit tests are working perfectly. Kindly help, Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hello, sir @PatrickAlphaC. Your insight will be greatly appreciated as this is the second person running into this kind of error, and I haven't been able to pinpoint the issue. |
Beta Was this translation helpful? Give feedback.
-
Hey, @ajoomye I also got this issue but gets resolved by putting these in foundary.toml [invariant]
runs = 1000
depth = 128
fail_on_revert = false
as we increased runs value to 1000 the setup gets completed and test passes successfully! |
Beta Was this translation helpful? Give feedback.
Hey, @ajoomye I also got this issue but gets resolved by putting these in foundary.toml
as we increased runs value to 1000 the setup gets completed and test passes successfully!
hope this will help you