@drift-labs/sdk 2.85.0-beta.2 → 2.85.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.85.0-beta.2
1
+ 2.85.0-beta.3
@@ -2586,6 +2586,9 @@ class DriftClient {
2586
2586
  }
2587
2587
  async placeAndTakePerpWithAdditionalOrders(orderParams, makerInfo, referrerInfo, bracketOrdersParams = new Array(), txParams, subAccountId, cancelExistingOrders, settlePnl, exitEarlyIfSimFails) {
2588
2588
  const txsToSign = await this.preparePlaceAndTakePerpOrderWithAdditionalOrders(orderParams, makerInfo, referrerInfo, bracketOrdersParams, txParams, subAccountId, cancelExistingOrders, settlePnl, exitEarlyIfSimFails);
2589
+ if (!txsToSign) {
2590
+ return null;
2591
+ }
2589
2592
  const signedTxs = (await this.txHandler.getSignedTransactionMap(txsToSign, this.provider.wallet)).signedTxMap;
2590
2593
  const { txSig, slot } = await this.sendTransaction(signedTxs.placeAndTakeTx, [], this.opts, true);
2591
2594
  this.perpMarketLastSlotCache.set(orderParams.marketIndex, slot);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.85.0-beta.2",
3
+ "version": "2.85.0-beta.3",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -4785,6 +4785,10 @@ export class DriftClient {
4785
4785
  exitEarlyIfSimFails
4786
4786
  );
4787
4787
 
4788
+ if (!txsToSign) {
4789
+ return null;
4790
+ }
4791
+
4788
4792
  const signedTxs = (
4789
4793
  await this.txHandler.getSignedTransactionMap(
4790
4794
  txsToSign,