Browse Source

Merge pull request #9 from fdundjer/fix/script-fails-to-build

fix: issue where script fails to build after package updates
Filip Dunđer 1 year ago
parent
commit
6de0604322
1 changed files with 2 additions and 0 deletions
  1. 2 0
      liquidity/liquidity.ts

+ 2 - 0
liquidity/liquidity.ts

@@ -114,6 +114,7 @@ export async function getAccountPoolKeysFromAccountDataV4(
     marketEventQueue: minimalMarketData.eventQueue,
     withdrawQueue: accountData.withdrawQueue,
     lpVault: accountData.lpVault,
+    lookupTableAccount: PublicKey.default,
   };
 }
 
@@ -129,6 +130,7 @@ export async function getTokenAccounts(
   for (const { pubkey, account } of tokenResp.value) {
     accounts.push({
       pubkey,
+      programId: account.owner,
       accountInfo: SPL_ACCOUNT_LAYOUT.decode(account.data),
     });
   }