@triadxyz/triad-protocol 2.0.3-beta → 2.0.5-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 -5
  2. package/package.json +1 -1
package/dist/trade.js CHANGED
@@ -572,11 +572,8 @@ class Trade {
572
572
  if (order.linkedBidOrderId !== '0') {
573
573
  const userOrders = yield this.getUserOrders(new web3_js_1.PublicKey(order.authority));
574
574
  let linkedSellerBidTradePDA = (0, pda_1.getUserTradePDA)(this.program.programId, new web3_js_1.PublicKey(order.authority));
575
- const linkedBidOrder = userOrders.find((order) => order.orderId === order.linkedBidOrderId &&
576
- order.marketId === marketId.toString());
577
- console.log('order', order);
578
- console.log('userOrders', userOrders);
579
- console.log('linkedBidOrder', linkedBidOrder);
575
+ const linkedBidOrder = userOrders.find((item) => item.orderId === order.linkedBidOrderId &&
576
+ item.marketId === marketId.toString());
580
577
  if (!linkedBidOrder) {
581
578
  throw new Error('Linked bid order not found');
582
579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.0.3-beta",
3
+ "version": "2.0.5-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",