@super-protocol/sdk-js 0.13.0-beta.10 → 0.13.0-beta.11

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.
@@ -225,21 +225,22 @@ var Order = /** @class */ (function () {
225
225
  */
226
226
  Order.prototype.getSelectedUsage = function () {
227
227
  return __awaiter(this, void 0, void 0, function () {
228
- var _a, _b, _c, _d;
229
- return __generator(this, function (_e) {
230
- switch (_e.label) {
228
+ var _a, _b, _c, _d, _e;
229
+ return __generator(this, function (_f) {
230
+ switch (_f.label) {
231
231
  case 0:
232
232
  _a = this;
233
233
  _b = utils_1.tupleToObject;
234
234
  return [4 /*yield*/, Order.contract.methods.getOrderSelectedUsage(this.id).call()];
235
235
  case 1:
236
- _a.selectedUsage = _b.apply(void 0, [_e.sent(), Order_1.OrderUsageStructure]);
236
+ _a.selectedUsage = _b.apply(void 0, [_f.sent(), Order_1.OrderUsageStructure]);
237
237
  this.selectedUsage.optionsCount = this.selectedUsage.optionsCount.map(function (item) { return +item; });
238
- _c = utils_1.unpackSlotInfo;
239
- _d = [this.selectedUsage.slotInfo];
238
+ _c = this.selectedUsage;
239
+ _d = utils_1.unpackSlotInfo;
240
+ _e = [this.selectedUsage.slotInfo];
240
241
  return [4 /*yield*/, TeeOffers_1.default.getDenominator()];
241
242
  case 2:
242
- _c.apply(void 0, _d.concat([_e.sent()]));
243
+ _c.slotInfo = _d.apply(void 0, _e.concat([_f.sent()]));
243
244
  return [2 /*return*/, this.selectedUsage];
244
245
  }
245
246
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sdk-js",
3
- "version": "0.13.0-beta.10",
3
+ "version": "0.13.0-beta.11",
4
4
  "main": "build/index.js",
5
5
  "license": "MIT",
6
6
  "files": [