@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/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -318,13 +318,12 @@ export async function depositWsolWithSession(
|
|
|
318
318
|
)
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
const stakePoolAccount = await getStakePoolAccount(
|
|
322
|
-
connection,
|
|
323
|
-
stakePoolAddress,
|
|
324
|
-
)
|
|
321
|
+
const stakePoolAccount = await getStakePoolAccount(connection, stakePoolAddress)
|
|
325
322
|
const stakePoolProgramId = getStakePoolProgramId(connection.rpcEndpoint)
|
|
326
323
|
const stakePool = stakePoolAccount.account.data
|
|
327
324
|
|
|
325
|
+
// stakePool.tokenProgramId
|
|
326
|
+
|
|
328
327
|
const instructions: TransactionInstruction[] = []
|
|
329
328
|
|
|
330
329
|
// Create token account if not specified
|
|
@@ -335,7 +334,7 @@ export async function depositWsolWithSession(
|
|
|
335
334
|
)
|
|
336
335
|
instructions.push(
|
|
337
336
|
createAssociatedTokenAccountIdempotentInstruction(
|
|
338
|
-
signerOrSession,
|
|
337
|
+
payer ?? signerOrSession,
|
|
339
338
|
associatedAddress,
|
|
340
339
|
userPubkey,
|
|
341
340
|
stakePool.poolMint,
|