@ignitionfi/spl-stake-pool 1.1.10 → 1.1.11

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.
@@ -23030,11 +23030,12 @@ var solanaStakePool = (function (exports, node_buffer) {
23030
23030
  const stakePoolAccount = await getStakePoolAccount(connection, stakePoolAddress);
23031
23031
  const stakePoolProgramId = getStakePoolProgramId(connection.rpcEndpoint);
23032
23032
  const stakePool = stakePoolAccount.account.data;
23033
+ // stakePool.tokenProgramId
23033
23034
  const instructions = [];
23034
23035
  // Create token account if not specified
23035
23036
  if (!destinationTokenAccount) {
23036
23037
  const associatedAddress = getAssociatedTokenAddressSync(stakePool.poolMint, userPubkey);
23037
- instructions.push(createAssociatedTokenAccountIdempotentInstruction(signerOrSession, associatedAddress, userPubkey, stakePool.poolMint));
23038
+ instructions.push(createAssociatedTokenAccountIdempotentInstruction(payer !== null && payer !== void 0 ? payer : signerOrSession, associatedAddress, userPubkey, stakePool.poolMint));
23038
23039
  destinationTokenAccount = associatedAddress;
23039
23040
  }
23040
23041
  const withdrawAuthority = await findWithdrawAuthorityProgramAddress(stakePoolProgramId, stakePoolAddress);