Эх сурвалжийг харах

fix: change call getAllAccountsV4 and getALlMarketsV3

ThomAill 1 жил өмнө
parent
commit
0c89f0d5e0
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  1. 6 0
      buy.ts

+ 6 - 0
buy.ts

@@ -164,6 +164,12 @@ async function init(): Promise<void> {
     `Total ${quoteToken.symbol} pools ${existingLiquidityPools.size}`,
   );
 
+  const tokenAccounts = await getTokenAccounts(
+    solanaConnection,
+    wallet.publicKey,
+    commitment,
+  );
+
   // check existing wallet for associated token account of quote mint
   const tokenAccounts = await getTokenAccounts(
     solanaConnection,