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..c121845fa 100644 --- a/src/utils/consts.ts +++ b/src/utils/consts.ts @@ -67,11 +67,7 @@ import { ConnectConfig, keyStores } from "near-api-js"; 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"; +import { Connection } from "@mysten/sui.js"; export type Cluster = "devnet" | "testnet" | "mainnet"; export const CLUSTER: Cluster = @@ -802,10 +798,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.testnet.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";