From f9b4fe3189876c0299c7f3cc28a7c3ca15ae2f15 Mon Sep 17 00:00:00 2001 From: Connor Prussin Date: Fri, 25 Apr 2025 21:06:52 -0700 Subject: [PATCH] fix(staking): remove max retries from wallet tester Instead, we will now use the default behavior from `@pythnetwork/solana-utils`, which aligns with what the staking sdk does and is to keep retrying until either the tx is successfully completed OR the user kills the app. --- apps/staking/src/components/WalletTester/index.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/staking/src/components/WalletTester/index.tsx b/apps/staking/src/components/WalletTester/index.tsx index 00e506def6..c25dd4cf4e 100644 --- a/apps/staking/src/components/WalletTester/index.tsx +++ b/apps/staking/src/components/WalletTester/index.tsx @@ -26,8 +26,6 @@ import { useToast } from "../../hooks/use-toast"; import { Button } from "../Button"; import { Switch } from "../Switch"; -const MAX_TEST_RETRIES = 10; - export const WalletTester = () => (
@@ -228,7 +226,6 @@ const testWallet = async (connection: Connection, wallet: AnchorWallet) => { ), connection, wallet, - MAX_TEST_RETRIES, ); } else { throw new Error("No test method found in program");