getting error while doing fuzz testing in the DeFi project #1923
Unanswered
5h3rl0ckH0lm3s
asked this question in
Q&A
Replies: 1 comment 13 replies
-
I encountered this error as well with fuzz testing. Requires some refactoring in the src contracts, along with adjustments to the fuzz test files. I would direct you to my repository, updated as of yesterday for reference in your refactoring: |
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
-
I am writing the code for the DeFi protocol alongside watching Advanced Foundry course by Patrick. I am facing a problem in the 19th video of this course on Cyfrin Updraft while writing the open invariant fuzz test
invariant_protocolMustHaveMoreValueThanTotalSupply
.Following is the code of
OpenInvariantsTest.t.sol
:On running the command
forge test --match-test invariant_protocolMustHaveMoreValueThanTotalSupply
, I am getting the below error:Please help me in debugging this.
Beta Was this translation helpful? Give feedback.
All reactions