@tradeport/sui-trading-sdk 0.3.2 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tradeport/sui-trading-sdk
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 272b549: Fixed remove bids
8
+
3
9
  ## 0.3.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -5941,7 +5941,7 @@ var removeCollectionBids = async ({ bidIds, tx: existingTx }, context) => {
5941
5941
  throw new Error("No bids found");
5942
5942
  }
5943
5943
  const bidsForTracking = [];
5944
- const tx = import_transactions19.Transaction.from(existingTx) ?? new import_transactions19.Transaction();
5944
+ const tx = existingTx ? import_transactions19.Transaction.from(existingTx) : new import_transactions19.Transaction();
5945
5945
  for (const bid of res.bids) {
5946
5946
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(bid?.nft?.token_id)) {
5947
5947
  throw new Error(DELOREAN_TOKEN_IDS_TO_DISABLE_MESSAGE);
@@ -6003,7 +6003,7 @@ var removeNftBids = async ({ bidIds, tx: existingTx }, context) => {
6003
6003
  throw new Error("No bids found");
6004
6004
  }
6005
6005
  const bidsForTracking = [];
6006
- const tx = import_transactions20.Transaction.from(existingTx) ?? new import_transactions20.Transaction();
6006
+ const tx = existingTx ? import_transactions20.Transaction.from(existingTx) : new import_transactions20.Transaction();
6007
6007
  for (const bid of res.bids) {
6008
6008
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(bid?.nft?.token_id)) {
6009
6009
  throw new Error(DELOREAN_TOKEN_IDS_TO_DISABLE_MESSAGE);