Pārlūkot izejas kodu

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.
Connor Prussin 7 mēneši atpakaļ
vecāks
revīzija
f9b4fe3189
1 mainītis faili ar 0 papildinājumiem un 3 dzēšanām
  1. 0 3
      apps/staking/src/components/WalletTester/index.tsx

+ 0 - 3
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 = () => (
   <div className="grid size-full place-content-center">
     <div className="w-96 border border-neutral-600 p-10">
@@ -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");