From 0ac95d89647a2708ca40c42cffc1c2b4f294b16c Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Fri, 13 Oct 2023 12:42:22 +0400 Subject: [PATCH] make tx tracking not depend on nodejs --- helpers/tx.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/tx.ts b/helpers/tx.ts index 52d03484..5b04f88b 100644 --- a/helpers/tx.ts +++ b/helpers/tx.ts @@ -1,4 +1,5 @@ -import { getEndpoints, getHardhatConfigNetworks } from "@zetachain/networks"; +import { getEndpoints } from "@zetachain/networks/dist/src/getEndpoints"; +import networks from "@zetachain/networks/dist/src/networks"; import axios from "axios"; import { ethers } from "ethers"; @@ -54,7 +55,6 @@ const fetchCCTXData = async ( pendingNonces: any, json: Boolean ) => { - const networks = getHardhatConfigNetworks(); const cctx = await getCCTX(hash, API); const receiver_chainId = cctx?.outbound_tx_params[0]?.receiver_chainId; const outbound_tx_hash = cctx?.outbound_tx_params[0]?.outbound_tx_hash;