Open schaable opened 9 months ago
viem is great imo, hopefully we can support this when able.
Would love to have this! much more cleaner with the matchers!
To add to that, hardhat-chain-matchers now uses the chaiAsPromised library which is not maintained anymore and is incompatible with chai 5. So it would make sense to upgrade / replace that as well while getting viem going.
+1
I put up a PR to add a viem specific package for chai matchers: #5252
In case anyone finds it useful, in the meantime, I deployed it here: https://www.npmjs.com/package/hardhat-chai-matchers-viem
The hardhat-chai-matchers plugin is currently only compatible with hardhat-ethers. This issue aims to see if there's interest in making it work with hardhat-viem and other Ethereum libraries. Please upvote or comment if you think this would be an useful feature.