Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cnftevm

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cnftevm - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

dist/cNFTCollection.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc