@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
|
@@ -1849,11 +1849,12 @@ async function depositWsolWithSession(connection, stakePoolAddress, signerOrSess
|
|
|
1849
1849
|
const stakePoolAccount = await getStakePoolAccount(connection, stakePoolAddress);
|
|
1850
1850
|
const stakePoolProgramId = getStakePoolProgramId(connection.rpcEndpoint);
|
|
1851
1851
|
const stakePool = stakePoolAccount.account.data;
|
|
1852
|
+
// stakePool.tokenProgramId
|
|
1852
1853
|
const instructions = [];
|
|
1853
1854
|
// Create token account if not specified
|
|
1854
1855
|
if (!destinationTokenAccount) {
|
|
1855
1856
|
const associatedAddress = splToken.getAssociatedTokenAddressSync(stakePool.poolMint, userPubkey);
|
|
1856
|
-
instructions.push(splToken.createAssociatedTokenAccountIdempotentInstruction(signerOrSession, associatedAddress, userPubkey, stakePool.poolMint));
|
|
1857
|
+
instructions.push(splToken.createAssociatedTokenAccountIdempotentInstruction(payer !== null && payer !== void 0 ? payer : signerOrSession, associatedAddress, userPubkey, stakePool.poolMint));
|
|
1857
1858
|
destinationTokenAccount = associatedAddress;
|
|
1858
1859
|
}
|
|
1859
1860
|
const withdrawAuthority = await findWithdrawAuthorityProgramAddress(stakePoolProgramId, stakePoolAddress);
|