aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-07-17 19:13:05 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-07-17 19:13:05 +0800
commit82ad5f789721312577735fc3ac7227c672903849 (patch)
tree28a9a2f373432db5f1d4be74673c3c541c5cef68
parentc3bd3437f5c68e96a440da0d1c8160ecb558e900 (diff)
downloaddexon-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.ts2
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);
}
}