@tradeport/sui-trading-sdk 0.3.1 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tradeport/sui-trading-sdk",
3
3
  "license": "MIT",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -30,7 +30,7 @@ export type RemoveCollectionBidTx = {
30
30
 
31
31
  export type RemoveCollectionBids = {
32
32
  bidIds: string[];
33
- tx?: Transaction;
33
+ tx?: Transaction | string;
34
34
  };
35
35
 
36
36
  export const removeCollectionBids = async (
@@ -48,7 +48,7 @@ export const removeCollectionBids = async (
48
48
  }
49
49
 
50
50
  const bidsForTracking = [];
51
- const tx = existingTx ?? new Transaction();
51
+ const tx = existingTx ? Transaction.from(existingTx) : new Transaction();
52
52
 
53
53
  for (const bid of res.bids) {
54
54
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(bid?.nft?.token_id)) {
@@ -33,7 +33,7 @@ export type RemoveNftBid = {
33
33
 
34
34
  export type RemoveNftBids = {
35
35
  bidIds: string[];
36
- tx?: Transaction;
36
+ tx?: Transaction | string;
37
37
  };
38
38
 
39
39
  export const removeNftBids = async (
@@ -51,7 +51,7 @@ export const removeNftBids = async (
51
51
  }
52
52
 
53
53
  const bidsForTracking = [];
54
- const tx = existingTx ?? new Transaction();
54
+ const tx = existingTx ? Transaction.from(existingTx) : new Transaction();
55
55
 
56
56
  for (const bid of res.bids) {
57
57
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(bid?.nft?.token_id)) {