Skip to content

Commit

Permalink
force enable solana chain
Browse files Browse the repository at this point in the history
  • Loading branch information
marxeille committed Feb 10, 2025
1 parent 413e717 commit ab5c184
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions apps/extension/src/stores/chain/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -77,11 +77,6 @@ export class ChainStore extends BaseChainStore<ChainInfoWithCoreTypes> {
ChainIdHelper.parse(bitcoinChainInfo.chainId).identifier,
];

console.log(
"this._enabledChainIdentifiers ",
this._enabledChainIdentifiers
);

makeObservable(this);

this.init();
Expand Down Expand Up @@ -131,12 +126,16 @@ export class ChainStore extends BaseChainStore<ChainInfoWithCoreTypes> {
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;
}
Expand Down

0 comments on commit ab5c184

Please sign in to comment.