@drift-labs/sdk 2.87.0-beta.2 → 2.87.0-beta.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.87.0-beta.2
1
+ 2.87.0-beta.3
@@ -484,9 +484,7 @@ class AdminClient extends driftClient_1.DriftClient {
484
484
  netUnsettledFundingPnl: netUnsettledFundingPnl !== null && netUnsettledFundingPnl !== void 0 ? netUnsettledFundingPnl : null,
485
485
  }, {
486
486
  accounts: {
487
- admin: this.isSubscribed
488
- ? this.getStateAccount().admin
489
- : this.wallet.publicKey,
487
+ admin: this.wallet.publicKey,
490
488
  state: await this.getStatePublicKey(),
491
489
  perpMarket: await (0, pda_1.getPerpMarketPublicKey)(this.program.programId, perpMarketIndex),
492
490
  spotMarket: await (0, pda_1.getSpotMarketPublicKey)(this.program.programId, numericConstants_1.QUOTE_SPOT_MARKET_INDEX),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.87.0-beta.2",
3
+ "version": "2.87.0-beta.3",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -1115,9 +1115,7 @@ export class AdminClient extends DriftClient {
1115
1115
  },
1116
1116
  {
1117
1117
  accounts: {
1118
- admin: this.isSubscribed
1119
- ? this.getStateAccount().admin
1120
- : this.wallet.publicKey,
1118
+ admin: this.wallet.publicKey,
1121
1119
  state: await this.getStatePublicKey(),
1122
1120
  perpMarket: await getPerpMarketPublicKey(
1123
1121
  this.program.programId,