@triadxyz/triad-protocol 1.5.8-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.
- package/dist/trade.js +2 -1
- 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
|
}
|
|
@@ -193,6 +193,7 @@ class Trade {
|
|
|
193
193
|
}
|
|
194
194
|
try {
|
|
195
195
|
userTradePDA = yield this.getUserTradeNonceWithSlots(myUserTrades);
|
|
196
|
+
console.log(userTradePDA);
|
|
196
197
|
}
|
|
197
198
|
catch (_a) {
|
|
198
199
|
const mainUserTrade = myUserTrades.find((userTrade) => !userTrade.isSubUser);
|