Comparing version 1.0.6 to 1.0.7
@@ -132,3 +132,3 @@ "use strict"; | ||
const signerAddress = await this.client.signer.getAddress(); | ||
if (data.data.owner != signerAddress) | ||
if (data.data.owner.toLowerCase() != signerAddress.toLowerCase()) | ||
throw new Error("Token not owned by signer!"); | ||
@@ -152,3 +152,3 @@ const transaction = await this.contract.transfer(tokenIndex, recipient, "0x" + data.proof.toString("hex"), { | ||
for (let destination of dst) { | ||
if (allTokens[destination.index].owner != signerAddress) | ||
if (allTokens[destination.index].owner.toLowerCase() !== signerAddress.toLowerCase()) | ||
throw new Error("Token not owned by signer!"); | ||
@@ -155,0 +155,0 @@ const merkleTree = (0, Utils_1.createMerkleTree)(this.contractData.depth, allTokens.map(token => Buffer.from(token.owner.substring(2), "hex"))); |
{ | ||
"name": "cnftevm", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -194,3 +194,3 @@ import {BigNumber, Contract, UnsignedTransaction} from "ethers"; | ||
const signerAddress = await this.client.signer.getAddress(); | ||
if(data.data.owner!=signerAddress) throw new Error("Token not owned by signer!"); | ||
if(data.data.owner.toLowerCase()!=signerAddress.toLowerCase()) throw new Error("Token not owned by signer!"); | ||
@@ -221,3 +221,3 @@ const transaction = await this.contract.transfer(tokenIndex, recipient, "0x"+data.proof.toString("hex"), { | ||
for(let destination of dst) { | ||
if(allTokens[destination.index].owner!=signerAddress) throw new Error("Token not owned by signer!"); | ||
if(allTokens[destination.index].owner.toLowerCase()!==signerAddress.toLowerCase()) throw new Error("Token not owned by signer!"); | ||
const merkleTree = createMerkleTree(this.contractData.depth, allTokens.map(token => Buffer.from(token.owner.substring(2), "hex"))); | ||
@@ -224,0 +224,0 @@ indexes.push(destination.index); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128228