Testing smart contracts. #4626
Unanswered
Aditya-Vinit-Joshi
asked this question in
Q&A
Replies: 1 comment
-
You need to test real behavior, not mocked, so you must test deployed contracts. Use mocks only when you can't use real contracts, for example, when you need to import third-party contracts locally. Hence, deploy scripts first and testing second. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Do we have to write the deploy scripts before testing a smart contract in hardhat. Or can we just start testing by writing mocha tests leaving the deploy and scripts directory blank?
Beta Was this translation helpful? Give feedback.
All reactions