From 459896889c5af95f6417ceb4d5ffcc1d4c975270 Mon Sep 17 00:00:00 2001 From: Felipe Mendes Date: Wed, 18 Sep 2024 14:48:09 -0300 Subject: [PATCH] chore: allow laboratory solana tests on mainnet (#2863) --- .../Solana/SolanaSendTransactionTest.tsx | 14 ++------------ .../Solana/SolanaSignAllTransactionsTest.tsx | 14 ++------------ .../Solana/SolanaSignAndSendTransactionTest.tsx | 14 ++------------ .../Solana/SolanaSignJupiterSwapTest.tsx | 14 ++------------ .../Solana/SolanaSignTransactionTest.tsx | 14 ++------------ .../src/components/Solana/SolanaTests.tsx | 5 +++-- 6 files changed, 13 insertions(+), 62 deletions(-) diff --git a/apps/laboratory/src/components/Solana/SolanaSendTransactionTest.tsx b/apps/laboratory/src/components/Solana/SolanaSendTransactionTest.tsx index 898e60c6ed..514847980e 100644 --- a/apps/laboratory/src/components/Solana/SolanaSendTransactionTest.tsx +++ b/apps/laboratory/src/components/Solana/SolanaSendTransactionTest.tsx @@ -1,6 +1,6 @@ import { useState } from 'react' -import { Button, Stack, Text, Spacer, Link } from '@chakra-ui/react' -import { useAppKitAccount, useAppKitNetwork, useAppKitProvider } from '@reown/appkit/react' +import { Button, Stack, Spacer, Link } from '@chakra-ui/react' +import { useAppKitAccount, useAppKitProvider } from '@reown/appkit/react' import { PublicKey, Transaction, @@ -9,7 +9,6 @@ import { SystemProgram } from '@solana/web3.js' -import { solana } from '@reown/appkit/networks' import { useChakraToast } from '../Toast' import { type Provider, useAppKitConnection } from '@reown/appkit-adapter-solana/react' @@ -20,7 +19,6 @@ const amountInLamports = 10_000_000 export function SolanaSendTransactionTest() { const toast = useChakraToast() const { address } = useAppKitAccount() - const { caipNetwork } = useAppKitNetwork() const { walletProvider } = useAppKitProvider('solana') const { connection } = useAppKitConnection() const [loading, setLoading] = useState(false) @@ -131,14 +129,6 @@ export function SolanaSendTransactionTest() { return null } - if (caipNetwork?.chainId === solana.chainId) { - return ( - - Switch to Solana Devnet or Testnet to test this feature - - ) - } - return (