@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignitionfi/spl-stake-pool",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Ignition Stake Pool SDK for FOGO",
5
5
  "contributors": [
6
6
  "Anza Maintainers <maintainers@anza.xyz>",
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,