@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 +1 -1
- package/lib/adminClient.js +1 -3
- package/package.json +1 -1
- package/src/adminClient.ts +1 -3
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.87.0-beta.
|
|
1
|
+
2.87.0-beta.3
|
package/lib/adminClient.js
CHANGED
|
@@ -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.
|
|
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
package/src/adminClient.ts
CHANGED
|
@@ -1115,9 +1115,7 @@ export class AdminClient extends DriftClient {
|
|
|
1115
1115
|
},
|
|
1116
1116
|
{
|
|
1117
1117
|
accounts: {
|
|
1118
|
-
admin: this.
|
|
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,
|