assertEq is showing error when written in the test file #240
Answered
by
Shiva-Sai-ssb
sardarahmedkhan505
asked this question in
Q&A
-
I am writing the test by following the lesson 7 tutorial and got this error, even I imported Test from forge-stdUndeclared identifier. Did you mean "assert"? this is the actual error
contract FundMeTest {
} |
Beta Was this translation helpful? Give feedback.
Answered by
Shiva-Sai-ssb
Jul 4, 2023
Replies: 1 comment 1 reply
-
Hey @sardarahmedkhan505 , you forgot to inherit the "Test" contract on the "FundMeTest" contract declaration. It should be like this: contract FundMeTest is Test {
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sardarahmedkhan505
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @sardarahmedkhan505 , you forgot to inherit the "Test" contract on the "FundMeTest" contract declaration. It should be like this: