@meteora-ag/dlmm 1.3.17-rc.1 → 1.3.17-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7600,7 +7600,15 @@ async function getExtraAccountMetasForTransferHook(connection, mintAddress, mint
7600
7600
  _web3js.PublicKey.default,
7601
7601
  BigInt(0)
7602
7602
  );
7603
- return instruction.keys.slice(4);
7603
+ const transferHookAccounts = instruction.keys.slice(4);
7604
+ if (transferHookAccounts.length == 0) {
7605
+ transferHookAccounts.push({
7606
+ pubkey: transferHook.programId,
7607
+ isSigner: false,
7608
+ isWritable: false
7609
+ });
7610
+ }
7611
+ return transferHookAccounts;
7604
7612
  }
7605
7613
  }
7606
7614
  function calculatePreFeeAmount(transferFee, postFeeAmount) {