Skip to content

Commit

Permalink
#281 - update fullnodes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Aug 14, 2023
1 parent ff9baa2 commit 5a65542
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 5a65542

Please sign in to comment.