diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-21 03:01:58 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-21 03:01:58 +0800 |
commit | cabce8cb674e937a566e8a821e3959076390f603 (patch) | |
tree | 085b13d8d39c78ae6b5b58157ad73ca5efea544f /packages/contracts/test/utils/erc721_wrapper.ts | |
parent | 44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1 (diff) | |
parent | 756787c61fff9c6b463fbbd69b48210dafe62004 (diff) | |
download | dexon-sol-tools-cabce8cb674e937a566e8a821e3959076390f603.tar.gz dexon-sol-tools-cabce8cb674e937a566e8a821e3959076390f603.tar.zst dexon-sol-tools-cabce8cb674e937a566e8a821e3959076390f603.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/connect/sra-api-v2
Diffstat (limited to 'packages/contracts/test/utils/erc721_wrapper.ts')
-rw-r--r-- | packages/contracts/test/utils/erc721_wrapper.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contracts/test/utils/erc721_wrapper.ts b/packages/contracts/test/utils/erc721_wrapper.ts index d023b4d02..743d10706 100644 --- a/packages/contracts/test/utils/erc721_wrapper.ts +++ b/packages/contracts/test/utils/erc721_wrapper.ts @@ -81,7 +81,8 @@ export class ERC721Wrapper { } public async doesTokenExistAsync(tokenAddress: string, tokenId: BigNumber): Promise<boolean> { const tokenContract = this._getTokenContractFromAssetData(tokenAddress); - const doesExist = await tokenContract.exists.callAsync(tokenId); + const owner = await tokenContract.ownerOf.callAsync(tokenId); + const doesExist = owner !== constants.NULL_ADDRESS; return doesExist; } public async approveProxyAsync(tokenAddress: string, tokenId: BigNumber): Promise<void> { |