From 12f63b3b1b9d939b147a944c33e7f122543b21b7 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Thu, 13 Jul 2023 17:28:04 +0200 Subject: [PATCH] add test --- test/token/ERC721/ERC721.behavior.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/token/ERC721/ERC721.behavior.js b/test/token/ERC721/ERC721.behavior.js index c9a2fa2a7..bb436fc88 100644 --- a/test/token/ERC721/ERC721.behavior.js +++ b/test/token/ERC721/ERC721.behavior.js @@ -635,6 +635,16 @@ function shouldBehaveLikeERC721(owner, newOwner, approved, anotherApproved, oper }); }); }); + + context('when the operator is address zero', function () { + it('reverts', async function () { + await expectRevertCustomError( + this.token.setApprovalForAll(constants.ZERO_ADDRESS, true, { from: owner }), + 'ERC721InvalidOperator', + [constants.ZERO_ADDRESS], + ); + }); + }); }); });