From ab5c184696b07f3bdb2820d0ff6f1761621e71d8 Mon Sep 17 00:00:00 2001 From: sonlha Date: Mon, 10 Feb 2025 16:07:06 +0700 Subject: [PATCH] force enable solana chain --- apps/extension/src/stores/chain/index.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/extension/src/stores/chain/index.tsx b/apps/extension/src/stores/chain/index.tsx index 847101024..5b1fca54a 100644 --- a/apps/extension/src/stores/chain/index.tsx +++ b/apps/extension/src/stores/chain/index.tsx @@ -7,7 +7,7 @@ import { runInAction, } from "mobx"; -import { ChainInfo, ModularChainInfo } from "@owallet/types"; +import { ChainIdEVM, ChainInfo, ModularChainInfo } from "@owallet/types"; import { ChainStore as BaseChainStore, IChainInfoImpl } from "@owallet/stores"; import { KeyRingStore } from "@owallet/stores-core"; @@ -77,11 +77,6 @@ export class ChainStore extends BaseChainStore { ChainIdHelper.parse(bitcoinChainInfo.chainId).identifier, ]; - console.log( - "this._enabledChainIdentifiers ", - this._enabledChainIdentifiers - ); - makeObservable(this); this.init(); @@ -131,12 +126,16 @@ export class ChainStore extends BaseChainStore { e.chainId.includes("solana") ); + const tronChainInfo = this.embedChainInfos.find( + (e) => e.chainId === ChainIdEVM.TRON + ); + const bitcoinChainInfo = this.embedChainInfos.find((e) => e.chainId.includes("bitcoin") ); map.set(ChainIdHelper.parse(solanaChainInfo.chainId).identifier, true); - + map.set(ChainIdHelper.parse(tronChainInfo.chainId).identifier, true); map.set(ChainIdHelper.parse(bitcoinChainInfo.chainId).identifier, true); return map; }