Update ERC721.behavior.js
This commit is contained in:
@ -635,15 +635,15 @@ 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],
|
||||
);
|
||||
});
|
||||
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],
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user