aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-29 21:03:52 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-29 22:52:54 +0800
commitac9175bf88272f8ea64c74cdf943decf2548c507 (patch)
treebe15d2135d77089c6fbd9404990e955ee9483150 /packages/contract-wrappers/src
parent294d3bbdc1db983701472eafed25dc84a455c0f7 (diff)
downloaddexon-sol-tools-ac9175bf88272f8ea64c74cdf943decf2548c507.tar
dexon-sol-tools-ac9175bf88272f8ea64c74cdf943decf2548c507.tar.gz
dexon-sol-tools-ac9175bf88272f8ea64c74cdf943decf2548c507.tar.bz2
dexon-sol-tools-ac9175bf88272f8ea64c74cdf943decf2548c507.tar.lz
dexon-sol-tools-ac9175bf88272f8ea64c74cdf943decf2548c507.tar.xz
dexon-sol-tools-ac9175bf88272f8ea64c74cdf943decf2548c507.tar.zst
dexon-sol-tools-ac9175bf88272f8ea64c74cdf943decf2548c507.zip
Rename approved to approvedAddress
Diffstat (limited to 'packages/contract-wrappers/src')
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts4
1 files changed, 2 insertions, 2 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 6a7191098..8867fd35d 100644
--- a/packages/contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts
+++ b/packages/contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts
@@ -360,8 +360,8 @@ export class ERC721TokenWrapper extends ContractWrapper {
normalizedSenderAddress,
);
if (!isApprovedForAll) {
- const approved = await this.getApprovedIfExistsAsync(normalizedTokenAddress, tokenId);
- if (approved !== senderAddress) {
+ const approvedAddress = await this.getApprovedIfExistsAsync(normalizedTokenAddress, tokenId);
+ if (approvedAddress !== senderAddress) {
throw new Error(ContractWrappersError.ERC721NoApproval);
}
}