Lesson 7 - Bug deletes constructor in Artifacts #401
Unanswered
DorianDaSilva
asked this question in
Q&A
Replies: 1 comment 5 replies
-
wtf uh.... yeah... It might be good to try to pinpoint a little more what's going on... Like can you get it down to just one test? Can you repeat it on a smaller project? |
Beta Was this translation helpful? Give feedback.
5 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.
-
When running the cmd:
|
$ yarn hardhat test
and/or
|
$ yarn hardhat coverage
It sometimes returns the following error:
|
Expected 0 arguments but got 2
To correct this error I had to add manuall the constructor inside of
|
Artifacts/contracts/test/MockV3Aggregator.json
As such

====================================================================================
The bug is that every time I run
test
orcoverage
the 5 tests initially pass (As sseen below) but if I repeat the action the constructor gets deleted from artifacts or the terminal thows some random error forcing me to once again enter the constructor manually into artifacts or even uninstall/reinstall vscode to get it working again (Sometimes the pragma stops working bcz compiler version changes randomly)Any thoughts on what could be causing this bug? Is this a hardhat issue that I should report?

====================================================================================
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions