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
Capturing a revertsWith('customError').withArgs(n) where n is a BigNumber too large to be consumed by BigNumber.from as an integer (vs as a string, which would work) fails conversion and results in the following BigNumber error:
Describe the bug
Capturing a
revertsWith('customError').withArgs(n)
wheren
is a BigNumber too large to be consumed byBigNumber.from
as an integer (vs as a string, which would work) fails conversion and results in the following BigNumber error:To Reproduce
yarn install
npx hardhat test
Software versions
ethereum-waffle
4.0.2@nomiclabs/hardhat-waffle
2.0.3hardhat
2.10.1Additional context
As a dirty workaround, I patched
decodeHardhatError
inwaffle-chai/src/matchers/revertedWith.ts
.L68
->
which essentially quotes any potential BigNumber.
This results in matcher working, but it's obviously not the way to solve the issue.
The text was updated successfully, but these errors were encountered: