Change zero address revert message in the balanceOf function of ERC721 and ERC1155 (#3314)

This commit is contained in:
Amin Bashiri
2022-04-02 14:43:33 +04:30
committed by GitHub
parent 69c3781043
commit 742e85be7c
4 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
context('when querying the zero address', function () {
it('throws', async function () {
await expectRevert(
this.token.balanceOf(ZERO_ADDRESS), 'ERC721: balance query for the zero address',
this.token.balanceOf(ZERO_ADDRESS), 'ERC721: address zero is not a valid owner',
);
});
});