Răsfoiți Sursa

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 luni în urmă
părinte
comite
f9b4fe3189
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  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");