@wireio/stake 2.4.1 → 2.4.2

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": "@wireio/stake",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "LIQ Staking Module for Wire Network",
5
5
  "homepage": "https://gitea.gitgo.app/Wire/sdk-stake",
6
6
  "license": "FSL-1.1-Apache-2.0",
@@ -274,9 +274,9 @@ export class SolanaStakingClient implements IStakingClient {
274
274
  * Enumerate withdrawal receipt NFTs held by the user (queued/ready/claimed).
275
275
  * Mirrors the ETH getPendingWithdraws helper for UI parity.
276
276
  */
277
- async getPendingWithdraws(): Promise<WithdrawReceipt[]> {
277
+ async getPendingWithdraws(address?: SolPubKey): Promise<WithdrawReceipt[]> {
278
278
  this.ensureUser();
279
- const owner = this.squadsVaultPDA ?? this.anchor.wallet.publicKey;
279
+ const owner = address ?? this.squadsVaultPDA ?? this.anchor.wallet.publicKey;
280
280
  return await this.convertClient.fetchWithdrawReceipts(owner);
281
281
  }
282
282