瀏覽代碼

Merge pull request #2622 from pyth-network/cprussin/remove-max-retries-from-wallet-tester

fix(staking): remove max retries from wallet tester
Connor Prussin 7 月之前
父節點
當前提交
bbc699fc3f
共有 1 個文件被更改,包括 0 次插入3 次删除
  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");