@drift-labs/sdk 2.90.0-beta.3 → 2.90.0-beta.4

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.90.0-beta.3
1
+ 2.90.0-beta.4
@@ -446,15 +446,14 @@ class AdminClient extends driftClient_1.DriftClient {
446
446
  const tokenProgram = this.getTokenProgramForSpotMarket(spotMarket);
447
447
  return await this.program.instruction.depositIntoSpotMarketVault(amount, {
448
448
  accounts: {
449
- admin: this.isSubscribed
450
- ? this.getStateAccount().admin
451
- : this.wallet.publicKey,
449
+ admin: this.wallet.publicKey,
452
450
  state: await this.getStatePublicKey(),
453
451
  sourceVault,
454
452
  spotMarket: spotMarket.pubkey,
455
453
  spotMarketVault: spotMarket.vault,
456
454
  tokenProgram,
457
455
  },
456
+ remainingAccounts,
458
457
  });
459
458
  }
460
459
  async updateAdmin(admin) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.90.0-beta.3",
3
+ "version": "2.90.0-beta.4",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -1030,15 +1030,14 @@ export class AdminClient extends DriftClient {
1030
1030
  const tokenProgram = this.getTokenProgramForSpotMarket(spotMarket);
1031
1031
  return await this.program.instruction.depositIntoSpotMarketVault(amount, {
1032
1032
  accounts: {
1033
- admin: this.isSubscribed
1034
- ? this.getStateAccount().admin
1035
- : this.wallet.publicKey,
1033
+ admin: this.wallet.publicKey,
1036
1034
  state: await this.getStatePublicKey(),
1037
1035
  sourceVault,
1038
1036
  spotMarket: spotMarket.pubkey,
1039
1037
  spotMarketVault: spotMarket.vault,
1040
1038
  tokenProgram,
1041
1039
  },
1040
+ remainingAccounts,
1042
1041
  });
1043
1042
  }
1044
1043