From dd77ce5939ecc6556a908224238f1606fcdbf9bb Mon Sep 17 00:00:00 2001 From: dianasavvatina Date: Thu, 3 Oct 2024 14:37:55 +0100 Subject: [PATCH] fix: react-wallet-v2: ghostnet --- .../react-wallet-v2/src/components/ProjectInfoCard.tsx | 2 +- advanced/wallets/react-wallet-v2/src/data/TezosData.ts | 6 +++--- .../react-wallet-v2/src/views/SessionProposalModal.tsx | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/advanced/wallets/react-wallet-v2/src/components/ProjectInfoCard.tsx b/advanced/wallets/react-wallet-v2/src/components/ProjectInfoCard.tsx index 7265f24e5..f3e29edce 100644 --- a/advanced/wallets/react-wallet-v2/src/components/ProjectInfoCard.tsx +++ b/advanced/wallets/react-wallet-v2/src/components/ProjectInfoCard.tsx @@ -61,7 +61,7 @@ export default function ProjectInfoCard({ metadata, intention }: IProps) { {name}
- wants to {intention ? intention : 'connect'} + wants to {intention ? intention : 'connect'}
diff --git a/advanced/wallets/react-wallet-v2/src/data/TezosData.ts b/advanced/wallets/react-wallet-v2/src/data/TezosData.ts index f9d9dc47a..982704632 100644 --- a/advanced/wallets/react-wallet-v2/src/data/TezosData.ts +++ b/advanced/wallets/react-wallet-v2/src/data/TezosData.ts @@ -28,9 +28,9 @@ export const TEZOS_MAINNET_CHAINS: Record = { } export const TEZOS_TEST_CHAINS: Record = { - 'tezos:testnet': { - chainId: 'testnet', - name: 'Tezos Testnet', + 'tezos:ghostnet': { + chainId: 'ghostnet', + name: 'Tezos Ghostnet', logo: '/chain-logos/tezos.svg', rgb: '44, 125, 247', rpc: 'https://rpc.ghostnet.teztnets.com', diff --git a/advanced/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx b/advanced/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx index 0686dda94..5942cdd18 100644 --- a/advanced/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx +++ b/advanced/wallets/react-wallet-v2/src/views/SessionProposalModal.tsx @@ -372,6 +372,7 @@ export default function SessionProposalModal() { Smart Accounts {smartAccountEnabled && namespaces && + namespaces.eip155 && getAvailableSmartAccountsOnNamespaceChains(namespaces.eip155.chains).map( (account, i) => { if (!account) { @@ -406,6 +407,7 @@ export default function SessionProposalModal() { {smartAccountEnabled && namespaces && + namespaces.eip155 && getAvailableSmartAccountsOnNamespaceChains(namespaces.eip155.chains).map( ({ chain }, i) => { if (!chain) {