From 5a65542854f962076c07e6803673c693b62e9a6b Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Mon, 14 Aug 2023 14:23:06 -0300 Subject: [PATCH] #281 - update fullnodes --- package-lock.json | 4 ++-- src/utils/consts.ts | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 227afc1af..a111a92dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@xlabs/portal-bridge-ui", - "version": "0.1.61", + "version": "0.1.62", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@xlabs/portal-bridge-ui", - "version": "0.1.61", + "version": "0.1.62", "dependencies": { "@certusone/wormhole-sdk": "^0.9.22", "@injectivelabs/sdk-ts": "^1.10.72", diff --git a/src/utils/consts.ts b/src/utils/consts.ts index ffa149ee6..fdf0d2705 100644 --- a/src/utils/consts.ts +++ b/src/utils/consts.ts @@ -68,8 +68,6 @@ import { AptosNetwork } from "./aptos"; import { getNetworkInfo, Network } from "@injectivelabs/networks"; import { ChainId as InjectiveChainId } from "@injectivelabs/ts-types"; import { - testnetConnection, - localnetConnection, Connection, } from "@mysten/sui.js"; @@ -802,10 +800,10 @@ export const getInjectiveNetworkChainId = () => { export const SUI_CONNECTION = CLUSTER === "mainnet" - ? new Connection({ fullnode: "https://rpc.mainnet.sui.io" }) + ? new Connection({ fullnode: "https://fullnode.mainnet.sui.io:443" }) : CLUSTER === "testnet" - ? testnetConnection - : localnetConnection; + ? new Connection({ fullnode: "https://fullnode.devnet.sui.io:443" }) + : new Connection({ fullnode: "http://127.0.0.1:9000" }); export const SUI_NATIVE_DECIMALS = 9; export const SUI_NATIVE_TOKEN_KEY = "0x2::sui::SUI";