We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider this code:
import {web3} from "hardhat"; import chai, {expect} from 'chai' import {solidity} from "ethereum-waffle"; chai.use(solidity); const AMOUNT = web3.utils.toBN(1e18); expect(await tokenInstance.balanceOf(owner)).to.equal(AMOUNT);
fails with
AssertionError: expected <BN: 56bc75e2d63100000> to equal <BN: 56bc75e2d63100000>
but if you explicitly cast bn to string - everything works fine.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider this code:
fails with
but if you explicitly cast bn to string - everything works fine.
The text was updated successfully, but these errors were encountered: