Update ERC721.behavior.js

This commit is contained in:
Hadrien Croubois
2023-07-14 08:38:46 +02:00
committed by GitHub
parent ca32b459ec
commit b982e2a808

View File

@ -635,15 +635,15 @@ function shouldBehaveLikeERC721(owner, newOwner, approved, anotherApproved, oper
}); });
}); });
}); });
});
context('when the operator is address zero', function () { context('when the operator is address zero', function () {
it('reverts', async function () { it('reverts', async function () {
await expectRevertCustomError( await expectRevertCustomError(
this.token.setApprovalForAll(constants.ZERO_ADDRESS, true, { from: owner }), this.token.setApprovalForAll(constants.ZERO_ADDRESS, true, { from: owner }),
'ERC721InvalidOperator', 'ERC721InvalidOperator',
[constants.ZERO_ADDRESS], [constants.ZERO_ADDRESS],
); );
});
}); });
}); });
}); });