@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.
@@ -1828,11 +1828,12 @@ async function depositWsolWithSession(connection, stakePoolAddress, signerOrSess
1828
1828
  const stakePoolAccount = await getStakePoolAccount(connection, stakePoolAddress);
1829
1829
  const stakePoolProgramId = getStakePoolProgramId(connection.rpcEndpoint);
1830
1830
  const stakePool = stakePoolAccount.account.data;
1831
+ // stakePool.tokenProgramId
1831
1832
  const instructions = [];
1832
1833
  // Create token account if not specified
1833
1834
  if (!destinationTokenAccount) {
1834
1835
  const associatedAddress = getAssociatedTokenAddressSync(stakePool.poolMint, userPubkey);
1835
- instructions.push(createAssociatedTokenAccountIdempotentInstruction(signerOrSession, associatedAddress, userPubkey, stakePool.poolMint));
1836
+ instructions.push(createAssociatedTokenAccountIdempotentInstruction(payer !== null && payer !== void 0 ? payer : signerOrSession, associatedAddress, userPubkey, stakePool.poolMint));
1836
1837
  destinationTokenAccount = associatedAddress;
1837
1838
  }
1838
1839
  const withdrawAuthority = await findWithdrawAuthorityProgramAddress(stakePoolProgramId, stakePoolAddress);