Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

281 Failed to load token metadata SUI #301

Merged
merged 2 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading