-
Notifications
You must be signed in to change notification settings - Fork 267
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
Tests Fail when using hardhat-viem
plugin
#874
Comments
Here is minimal reproducible example: |
@zdenham Yes, sorry this is known issue with the viem plugin that's being tracked at hardhat in PR 4961 comment. |
Got it--appreciate the response @cgewecke. Will keep up to date there |
I have this problem too. Please keep me posted 🙏 |
hardhat-viem
plugin
@zdenham, @joelamouche A workaround for this problem has been added in the latest version (0.8.12) via #883 Everything should work as expected if you set a SOLIDITY_COVERAGE env variable to
(This allows the plugin the configure the network correctly before the hardhat-viem plugin hijacks the provider). Have edited the original comment with this workaround for visibility and am pinning this issue. Please just lmk if this fix does not work for some reason. |
Workaround: (maintainer edit for visibility)
As of 0.8.12, viem should work with coverage if you set an environment variable before the command as below:
----- Original Issue -----
Using hardhat viem:
Overriding the wallet client to test calling a contract from a different EOA doesn't seem to work properly (only when using solidity coverage)
The text was updated successfully, but these errors were encountered: