diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-17 19:13:05 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-17 19:13:05 +0800 |
commit | 82ad5f789721312577735fc3ac7227c672903849 (patch) | |
tree | 28a9a2f373432db5f1d4be74673c3c541c5cef68 | |
parent | c3bd3437f5c68e96a440da0d1c8160ecb558e900 (diff) | |
download | dexon-sol-tools-82ad5f789721312577735fc3ac7227c672903849.tar dexon-sol-tools-82ad5f789721312577735fc3ac7227c672903849.tar.gz dexon-sol-tools-82ad5f789721312577735fc3ac7227c672903849.tar.bz2 dexon-sol-tools-82ad5f789721312577735fc3ac7227c672903849.tar.lz dexon-sol-tools-82ad5f789721312577735fc3ac7227c672903849.tar.xz dexon-sol-tools-82ad5f789721312577735fc3ac7227c672903849.tar.zst dexon-sol-tools-82ad5f789721312577735fc3ac7227c672903849.zip |
Use normalizedAddress
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts index 6f6b4f716..1133a4085 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts @@ -350,7 +350,7 @@ export class ERC721TokenWrapper extends ContractWrapper { ); if (!isApprovedForAll) { const approvedAddress = await this.getApprovedIfExistsAsync(normalizedTokenAddress, tokenId); - if (approvedAddress !== senderAddress) { + if (approvedAddress !== normalizedSenderAddress) { throw new Error(ContractWrappersError.ERC721NoApproval); } } |