Skip to content

Commit

Permalink
281 Failed to load token metadata SUI (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Aug 15, 2023
1 parent 33ee065 commit 0e7bd97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 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.

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

0 comments on commit 0e7bd97

Please sign in to comment.