Migrate math tests to ethers.js v6 (#4769)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
This commit is contained in:
@ -70,7 +70,8 @@ contract('ERC721Consecutive', function (accounts) {
|
||||
|
||||
it('balance & voting power are set', async function () {
|
||||
for (const account of accounts) {
|
||||
const balance = sum(...batches.filter(({ receiver }) => receiver === account).map(({ amount }) => amount));
|
||||
const balance =
|
||||
sum(...batches.filter(({ receiver }) => receiver === account).map(({ amount }) => amount)) ?? 0;
|
||||
|
||||
expect(await this.token.balanceOf(account)).to.be.bignumber.equal(web3.utils.toBN(balance));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user