Преглед изворни кода

fix: change call getAllAccountsV4 and getALlMarketsV3

ThomAill пре 1 година
родитељ
комит
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,