You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nomicfoundation/hardhat-chai-matchers contains a few features and bug fixes that ethereum-waffle does not possess and greatly benefited my work, for example:
ethereum-waffle cannot match custom errors introduced in Solidity 0.8.4
ethereum-waffle sometimes fails to properly compare BigNumber and BigNumberish while @nomicfoundation/hardhat-chai-matchers seems to have better support for this
The matcher syntax generally remains the same, so no need to extensively rewrite legacy code
Additional Information
For instance, when performing .deep.equal on BigNumber[] and PromiseOrValue<BigNumberish>[], ethereum-waffle fails this comparison despite the underlying numbers being the same.
The text was updated successfully, but these errors were encountered:
Feature Description
@nomicfoundation/hardhat-chai-matchers
contains a few features and bug fixes thatethereum-waffle
does not possess and greatly benefited my work, for example:ethereum-waffle
cannot match custom errors introduced in Solidity 0.8.4ethereum-waffle
sometimes fails to properly compareBigNumber
andBigNumberish
while@nomicfoundation/hardhat-chai-matchers
seems to have better support for thisAdditional Information
For instance, when performing
.deep.equal
onBigNumber[]
andPromiseOrValue<BigNumberish>[]
,ethereum-waffle
fails this comparison despite the underlying numbers being the same.The text was updated successfully, but these errors were encountered: