浏览代码

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,