Make ERC721.exists internal (#1193)

* Made ERC721.exists internal.

* Removed exists ERC165 identifiers
This commit is contained in:
Nicolás Venturo
2018-08-13 16:07:27 -03:00
committed by GitHub
parent f00fce53d7
commit 41e6b2e992
6 changed files with 17 additions and 43 deletions

View File

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

View File

@ -225,7 +225,6 @@ contract('ERC721Token', function (accounts) {
shouldSupportInterfaces([
'ERC165',
'ERC721',
'ERC721Exists',
'ERC721Enumerable',
'ERC721Metadata',
]);