diff options
-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); } } |