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

@aurox/smart-contract-monitoring

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurox/smart-contract-monitoring - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

4

dist/verifyContract.js

@@ -60,3 +60,3 @@ "use strict";

if (result.status === "fulfilled" && "nfts" in result.value.data) {
const lookupIndex = result.value.data.nfts.findIndex(NFTSignature => NFTSignature.contract_address.toLowerCase() === contractAddress.toLowerCase());
const lookupIndex = result.value.data.nfts.findIndex(NFTSignature => NFTSignature.contract_address.toLowerCase() === contractAddress.toLowerCase() && NFTSignature.chain_code === chainCode);
if (lookupIndex !== -1) {

@@ -72,3 +72,3 @@ fioAddress = handle;

if (mapped.status === "fulfilled" && "nfts" in mapped.value.data) {
const lookupValue = mapped.value.data.nfts.find(NFTSignature => NFTSignature.contract_address.toLowerCase() === contractAddress.toLowerCase());
const lookupValue = mapped.value.data.nfts.find(NFTSignature => NFTSignature.contract_address.toLowerCase() === contractAddress.toLowerCase() && NFTSignature.chain_code === chainCode);
if (lookupValue) {

@@ -75,0 +75,0 @@ fioAddress = lookupValue.fio_address;

{
"name": "@aurox/smart-contract-monitoring",
"version": "0.0.3",
"version": "0.0.4",
"description": "The goal of this library is to help minimize risks of users interacting with smart contracts and potentially, help other developers/companies to protect their user base.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -73,3 +73,4 @@ import axios from "axios";

const lookupIndex = (result.value.data as GetNFTsFIOAddressResponseSuccess).nfts.findIndex(
NFTSignature => NFTSignature.contract_address.toLowerCase() === contractAddress.toLowerCase(),
NFTSignature =>
NFTSignature.contract_address.toLowerCase() === contractAddress.toLowerCase() && NFTSignature.chain_code === chainCode,
);

@@ -91,3 +92,4 @@

const lookupValue = (mapped.value.data as GetNFTsContractResponseSuccess).nfts.find(
NFTSignature => NFTSignature.contract_address.toLowerCase() === contractAddress.toLowerCase(),
NFTSignature =>
NFTSignature.contract_address.toLowerCase() === contractAddress.toLowerCase() && NFTSignature.chain_code === chainCode,
);

@@ -94,0 +96,0 @@

Sorry, the diff of this file is not supported yet

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