@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.
- package/dist/index.browser.cjs.js +2 -1
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.browser.esm.js +2 -1
- package/dist/index.browser.esm.js.map +1 -1
- package/dist/index.cjs.js +2 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +2 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -5
package/dist/index.esm.js
CHANGED
|
@@ -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);
|