This commit is contained in:
Hadrien Croubois
2023-07-13 17:28:04 +02:00
parent 08da709ba7
commit 12f63b3b1b

View File

@ -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],
);
});
});
});
});