@depay/widgets 12.3.16 → 12.3.17

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.
@@ -25780,7 +25780,7 @@
25780
25780
  var pay = /*#__PURE__*/function () {
25781
25781
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
25782
25782
  var _transaction$params;
25783
- var transaction, stop, currentBlock;
25783
+ var transaction, stop, currentBlock, deadline;
25784
25784
  return regenerator.wrap(function _callee2$(_context2) {
25785
25785
  while (1) switch (_context2.prev = _context2.next) {
25786
25786
  case 0:
@@ -25819,8 +25819,9 @@
25819
25819
  });
25820
25820
  case 18:
25821
25821
  currentBlock = _context2.sent;
25822
- _context2.next = 21;
25823
- return trace(currentBlock, payment.route, transaction, transaction === null || transaction === void 0 || (_transaction$params = transaction.params) === null || _transaction$params === void 0 || (_transaction$params = _transaction$params.payment) === null || _transaction$params === void 0 ? void 0 : _transaction$params.deadline).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
25822
+ deadline = transaction.deadline || (transaction === null || transaction === void 0 || (_transaction$params = transaction.params) === null || _transaction$params === void 0 || (_transaction$params = _transaction$params.payment) === null || _transaction$params === void 0 ? void 0 : _transaction$params.deadline);
25823
+ _context2.next = 22;
25824
+ return trace(currentBlock, payment.route, transaction, deadline).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
25824
25825
  return regenerator.wrap(function _callee$(_context) {
25825
25826
  while (1) switch (_context.prev = _context.next) {
25826
25827
  case 0:
@@ -25828,8 +25829,7 @@
25828
25829
  _context.next = 3;
25829
25830
  return wallet.sendTransaction(Object.assign({}, transaction, {
25830
25831
  sent: function sent(sentTransaction) {
25831
- var _transaction$params2;
25832
- initializeTransactionTracking(sentTransaction, currentBlock, transaction === null || transaction === void 0 || (_transaction$params2 = transaction.params) === null || _transaction$params2 === void 0 || (_transaction$params2 = _transaction$params2.payment) === null || _transaction$params2 === void 0 ? void 0 : _transaction$params2.deadline);
25832
+ initializeTransactionTracking(sentTransaction, currentBlock, deadline);
25833
25833
  if (_sent) {
25834
25834
  _sent(sentTransaction);
25835
25835
  }
@@ -25837,9 +25837,8 @@
25837
25837
  succeeded: paymentSucceeded,
25838
25838
  failed: paymentFailed
25839
25839
  })).then(function (sentTransaction) {
25840
- var _transaction$params3;
25841
25840
  setTransaction(sentTransaction);
25842
- initializePaymentTracking(sentTransaction, currentBlock, payment.route, transaction === null || transaction === void 0 || (_transaction$params3 = transaction.params) === null || _transaction$params3 === void 0 || (_transaction$params3 = _transaction$params3.payment) === null || _transaction$params3 === void 0 ? void 0 : _transaction$params3.deadline);
25841
+ initializePaymentTracking(sentTransaction, currentBlock, payment.route, deadline);
25843
25842
  })["catch"](function (error) {
25844
25843
  console.log('error', error);
25845
25844
  setPaymentState('initialized');
@@ -25861,7 +25860,7 @@
25861
25860
  setUpdatable(true);
25862
25861
  navigate('TracingFailed');
25863
25862
  });
25864
- case 21:
25863
+ case 22:
25865
25864
  case "end":
25866
25865
  return _context2.stop();
25867
25866
  }