diff --git a/wallets/react-wallet-v2/src/components/RequestDetalilsCard.tsx b/wallets/react-wallet-v2/src/components/RequestDetalilsCard.tsx index 1bb56e0..695b610 100644 --- a/wallets/react-wallet-v2/src/components/RequestDetalilsCard.tsx +++ b/wallets/react-wallet-v2/src/components/RequestDetalilsCard.tsx @@ -1,6 +1,6 @@ import { COSMOS_MAINNET_CHAINS, TCosmosChain } from '@/data/COSMOSData' import { EIP155_CHAINS, TEIP155Chain } from '@/data/EIP155Data' -import { SOLANA_MAINNET_CHAINS, TSolanaChain } from '@/data/SolanaData' +import { SOLANA_CHAINS, TSolanaChain } from '@/data/SolanaData' import { Col, Divider, Row, Text } from '@nextui-org/react' import { Fragment } from 'react' @@ -27,7 +27,7 @@ export default function RequesDetailsCard({ chains, protocol }: IProps) { chain => EIP155_CHAINS[chain as TEIP155Chain]?.name ?? COSMOS_MAINNET_CHAINS[chain as TCosmosChain]?.name ?? - SOLANA_MAINNET_CHAINS[chain as TSolanaChain]?.name ?? + SOLANA_CHAINS[chain as TSolanaChain]?.name ?? chain ) .join(', ')} diff --git a/wallets/react-wallet-v2/src/data/SolanaData.ts b/wallets/react-wallet-v2/src/data/SolanaData.ts index 7e98298..6d6d1ee 100644 --- a/wallets/react-wallet-v2/src/data/SolanaData.ts +++ b/wallets/react-wallet-v2/src/data/SolanaData.ts @@ -16,6 +16,18 @@ export const SOLANA_MAINNET_CHAINS = { } } +export const SOLANA_TEST_CHAINS = { + 'solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K': { + chainId: '8E9rvCKLFQia2Y35HXjjpWzj8weVo44K', + name: 'Solana Devnet', + logo: '/chain-logos/solana-4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ.png', + rgb: '30, 240, 166', + rpc: '' + } +} + +export const SOLANA_CHAINS = { ...SOLANA_MAINNET_CHAINS, ...SOLANA_TEST_CHAINS } + /** * Methods */ diff --git a/wallets/react-wallet-v2/src/pages/index.tsx b/wallets/react-wallet-v2/src/pages/index.tsx index 4d36723..85748ed 100644 --- a/wallets/react-wallet-v2/src/pages/index.tsx +++ b/wallets/react-wallet-v2/src/pages/index.tsx @@ -3,7 +3,7 @@ import AccountPicker from '@/components/AccountPicker' import PageHeader from '@/components/PageHeader' import { COSMOS_MAINNET_CHAINS } from '@/data/COSMOSData' import { EIP155_MAINNET_CHAINS, EIP155_TEST_CHAINS } from '@/data/EIP155Data' -import { SOLANA_MAINNET_CHAINS } from '@/data/SolanaData' +import { SOLANA_MAINNET_CHAINS, SOLANA_TEST_CHAINS } from '@/data/SolanaData' import SettingsStore from '@/store/SettingsStore' import { Text } from '@nextui-org/react' import { Fragment } from 'react' @@ -38,6 +38,9 @@ export default function HomePage() { {Object.values(EIP155_TEST_CHAINS).map(({ name, logo, rgb }) => ( ))} + {Object.values(SOLANA_TEST_CHAINS).map(({ name, logo, rgb }) => ( + + ))} ) : null} diff --git a/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx b/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx index 1451df6..c6f275f 100644 --- a/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx +++ b/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx @@ -5,7 +5,7 @@ import RequestMethodCard from '@/components/RequestMethodCard' import RequestModalContainer from '@/components/RequestModalContainer' import { COSMOS_MAINNET_CHAINS, TCosmosChain } from '@/data/COSMOSData' import { EIP155_CHAINS, TEIP155Chain } from '@/data/EIP155Data' -import { SOLANA_MAINNET_CHAINS, TSolanaChain } from '@/data/SolanaData' +import { SOLANA_CHAINS, TSolanaChain } from '@/data/SolanaData' import ModalStore from '@/store/ModalStore' import { cosmosAddresses } from '@/utils/CosmosWalletUtil' import { eip155Addresses } from '@/utils/EIP155WalletUtil' @@ -103,7 +103,7 @@ export default function SessionProposalModal() { if (isEIP155Chain(chain)) { return (