From ac9175bf88272f8ea64c74cdf943decf2548c507 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 29 Jun 2018 16:03:52 +0300 Subject: Rename approved to approvedAddress --- .../contract-wrappers/src/contract_wrappers/erc721_token_wrapper.ts | 4 ++-- 1 file 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); } } -- cgit v1.2.3