|
@@ -66,7 +66,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
|
|
|
|
|
|
it('reverts', async function () {
|
|
|
await expectRevert(
|
|
|
- this.token.ownerOf(tokenId), 'ERC721: owner query for nonexistent token',
|
|
|
+ this.token.ownerOf(tokenId), 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
});
|
|
@@ -201,7 +201,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
|
|
|
it('reverts', async function () {
|
|
|
await expectRevert(
|
|
|
transferFunction.call(this, owner, other, nonExistentTokenId, { from: owner }),
|
|
|
- 'ERC721: owner query for nonexistent token',
|
|
|
+ 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
});
|
|
@@ -276,7 +276,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
|
|
|
nonExistentTokenId,
|
|
|
{ from: owner },
|
|
|
),
|
|
|
- 'ERC721: owner query for nonexistent token',
|
|
|
+ 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
});
|
|
@@ -534,7 +534,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
|
|
|
context('when the given token ID does not exist', function () {
|
|
|
it('reverts', async function () {
|
|
|
await expectRevert(this.token.approve(approved, nonExistentTokenId, { from: operator }),
|
|
|
- 'ERC721: owner query for nonexistent token');
|
|
|
+ 'ERC721: invalid token ID');
|
|
|
});
|
|
|
});
|
|
|
});
|
|
@@ -623,7 +623,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
|
|
|
it('reverts', async function () {
|
|
|
await expectRevert(
|
|
|
this.token.getApproved(nonExistentTokenId),
|
|
|
- 'ERC721: approved query for nonexistent token',
|
|
|
+ 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
});
|
|
@@ -678,7 +678,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
|
|
|
describe('_burn', function () {
|
|
|
it('reverts when burning a non-existent token id', async function () {
|
|
|
await expectRevert(
|
|
|
- this.token.burn(nonExistentTokenId), 'ERC721: owner query for nonexistent token',
|
|
|
+ this.token.burn(nonExistentTokenId), 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
|
|
@@ -704,13 +704,13 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
|
|
|
it('deletes the token', async function () {
|
|
|
expect(await this.token.balanceOf(owner)).to.be.bignumber.equal('1');
|
|
|
await expectRevert(
|
|
|
- this.token.ownerOf(firstTokenId), 'ERC721: owner query for nonexistent token',
|
|
|
+ this.token.ownerOf(firstTokenId), 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
|
|
|
it('reverts when burning a token id that has been deleted', async function () {
|
|
|
await expectRevert(
|
|
|
- this.token.burn(firstTokenId), 'ERC721: owner query for nonexistent token',
|
|
|
+ this.token.burn(firstTokenId), 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
});
|
|
@@ -846,7 +846,7 @@ function shouldBehaveLikeERC721Enumerable (errorPrefix, owner, newOwner, approve
|
|
|
describe('_burn', function () {
|
|
|
it('reverts when burning a non-existent token id', async function () {
|
|
|
await expectRevert(
|
|
|
- this.token.burn(firstTokenId), 'ERC721: owner query for nonexistent token',
|
|
|
+ this.token.burn(firstTokenId), 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
|
|
@@ -906,7 +906,7 @@ function shouldBehaveLikeERC721Metadata (errorPrefix, name, symbol, owner) {
|
|
|
|
|
|
it('reverts when queried for non existent token id', async function () {
|
|
|
await expectRevert(
|
|
|
- this.token.tokenURI(nonExistentTokenId), 'ERC721Metadata: URI query for nonexistent token',
|
|
|
+ this.token.tokenURI(nonExistentTokenId), 'ERC721: invalid token ID',
|
|
|
);
|
|
|
});
|
|
|
|