@aurox/smart-contract-monitoring
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -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
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
26451
629