Make ERC721.exists internal (#1193)
* Made ERC721.exists internal. * Removed exists ERC165 identifiers
This commit is contained in:
@ -47,26 +47,6 @@ function shouldBehaveLikeERC721BasicToken (accounts) {
|
||||
});
|
||||
});
|
||||
|
||||
describe('exists', function () {
|
||||
context('when the token exists', function () {
|
||||
const tokenId = firstTokenId;
|
||||
|
||||
it('should return true', async function () {
|
||||
const result = await this.token.exists(tokenId);
|
||||
result.should.be.true;
|
||||
});
|
||||
});
|
||||
|
||||
context('when the token does not exist', function () {
|
||||
const tokenId = unknownTokenId;
|
||||
|
||||
it('should return false', async function () {
|
||||
const result = await this.token.exists(tokenId);
|
||||
result.should.be.false;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('ownerOf', function () {
|
||||
context('when the given token ID was tracked by this token', function () {
|
||||
const tokenId = firstTokenId;
|
||||
@ -554,7 +534,6 @@ function shouldBehaveLikeERC721BasicToken (accounts) {
|
||||
shouldSupportInterfaces([
|
||||
'ERC165',
|
||||
'ERC721',
|
||||
'ERC721Exists',
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
@ -225,7 +225,6 @@ contract('ERC721Token', function (accounts) {
|
||||
shouldSupportInterfaces([
|
||||
'ERC165',
|
||||
'ERC721',
|
||||
'ERC721Exists',
|
||||
'ERC721Enumerable',
|
||||
'ERC721Metadata',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user