Skip to content

Commit

Permalink
Merge pull request #2073 from Web3Auth/feat/solana-ws-plugin
Browse files Browse the repository at this point in the history
support old solana chain id in get config
  • Loading branch information
chaitanyapotti authored Feb 19, 2025
2 parents 051278c + 394a0be commit ef3f40c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/base/src/chain/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ export const getEvmChainConfig = (chainId: number): CustomChainConfig | null =>

export const getSolanaChainConfig = (chainId: number): CustomChainConfig | null => {
const chainNamespace = CHAIN_NAMESPACES.SOLANA;
if (chainId === 101) {
// support both cross chain id and base solana chain id from 1
if (chainId === 101 || chainId === 1) {
return {
logo: "https://images.toruswallet.io/sol.svg",
chainNamespace,
Expand All @@ -183,7 +184,7 @@ export const getSolanaChainConfig = (chainId: number): CustomChainConfig | null
tickerName: "Solana",
decimals: 9,
};
} else if (chainId === 102) {
} else if (chainId === 102 || chainId === 2) {
return {
logo: "https://images.toruswallet.io/sol.svg",
chainNamespace,
Expand All @@ -195,7 +196,7 @@ export const getSolanaChainConfig = (chainId: number): CustomChainConfig | null
tickerName: "Solana",
decimals: 9,
};
} else if (chainId === 103) {
} else if (chainId === 103 || chainId === 3) {
return {
logo: "https://images.toruswallet.io/sol.svg",
chainNamespace,
Expand Down

0 comments on commit ef3f40c

Please sign in to comment.