-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs : Missing Imports ( chapter 8 ) #1150
Comments
If you import as follows: That said, I think we should modify the example code to reflect the best practices (e.g. named imports), especially as this is the entrypoint for beginners. We should also update the Solidity pragma to use @0xumarkhatab would you like to open a PR for this? |
Can I fix this little issue ? |
Yes, feel free! |
Chapter 8 -> section 8.1 lacks import of stdError & Vm
Issue
There are multiple places where forge-std's components are used without importing them .
Impact
Beginners get confused when stdError is not found upon compilation of smart contracts because foundry demands explicit imports
Fix
Add following lines in the docs to import used components
The text was updated successfully, but these errors were encountered: