@triadxyz/triad-protocol 1.5.7-beta → 1.5.9-beta

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.
Files changed (2) hide show
  1. package/dist/trade.js +2 -2
  2. package/package.json +1 -1
package/dist/trade.js CHANGED
@@ -139,7 +139,7 @@ class Trade {
139
139
  getUserTradeNonceWithSlots(userTrades) {
140
140
  return __awaiter(this, void 0, void 0, function* () {
141
141
  let nonce = null;
142
- for (const userTrade of userTrades) {
142
+ for (const userTrade of userTrades.reverse()) {
143
143
  if (nonce !== null) {
144
144
  break;
145
145
  }
@@ -149,7 +149,7 @@ class Trade {
149
149
  }
150
150
  let status = Object.keys(order.status)[0];
151
151
  if (status !== 'open') {
152
- nonce = userTrade.nonce;
152
+ nonce = userTrade.isSubUser ? Number(userTrade.nonce) : 0;
153
153
  }
154
154
  });
155
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "1.5.7-beta",
3
+ "version": "1.5.9-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",