From 013c9dd10ce5a82acc51eb1ad4a660657509d03c Mon Sep 17 00:00:00 2001 From: Rustin Date: Mon, 21 Oct 2024 11:26:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20add=20Dfinity=20mainnet?= =?UTF-8?q?=20in=20testnet=20chain=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wallet/src/utils/basicTypes.ts | 1 + apps/wallet/src/utils/chain/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/wallet/src/utils/basicTypes.ts b/apps/wallet/src/utils/basicTypes.ts index da3e6b8..bb9f25b 100644 --- a/apps/wallet/src/utils/basicTypes.ts +++ b/apps/wallet/src/utils/basicTypes.ts @@ -323,6 +323,7 @@ export class ChainAssetType { static ICRC3 = new ChainAssetType(new BigNumber(6)); static BRC20 = new ChainAssetType(new BigNumber(7)); static SPL = new ChainAssetType(new BigNumber(8)); + static TRC20 = new ChainAssetType(new BigNumber(9)); static Jetton = new ChainAssetType(new BigNumber(10)); static fromString(value: string): ChainAssetType | null { diff --git a/apps/wallet/src/utils/chain/index.ts b/apps/wallet/src/utils/chain/index.ts index 1164286..f64ec28 100644 --- a/apps/wallet/src/utils/chain/index.ts +++ b/apps/wallet/src/utils/chain/index.ts @@ -29,7 +29,7 @@ const SupportedChainsForTestnet = [ // SolanaTestnet, TonTestnet, // TronNile, - // TODO: Dfinity testnet + Dfinity, ]; export function getChainByChainId(chainId: ChainId | null, devMode?: boolean): ChainInfo | null {