@tradeport/sui-trading-sdk 0.3.1 → 0.3.2

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/dist/index.mjs CHANGED
@@ -5917,7 +5917,7 @@ var removeCollectionBids = async ({ bidIds, tx: existingTx }, context) => {
5917
5917
  throw new Error("No bids found");
5918
5918
  }
5919
5919
  const bidsForTracking = [];
5920
- const tx = existingTx ?? new Transaction19();
5920
+ const tx = Transaction19.from(existingTx) ?? new Transaction19();
5921
5921
  for (const bid of res.bids) {
5922
5922
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(bid?.nft?.token_id)) {
5923
5923
  throw new Error(DELOREAN_TOKEN_IDS_TO_DISABLE_MESSAGE);
@@ -5979,7 +5979,7 @@ var removeNftBids = async ({ bidIds, tx: existingTx }, context) => {
5979
5979
  throw new Error("No bids found");
5980
5980
  }
5981
5981
  const bidsForTracking = [];
5982
- const tx = existingTx ?? new Transaction20();
5982
+ const tx = Transaction20.from(existingTx) ?? new Transaction20();
5983
5983
  for (const bid of res.bids) {
5984
5984
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(bid?.nft?.token_id)) {
5985
5985
  throw new Error(DELOREAN_TOKEN_IDS_TO_DISABLE_MESSAGE);