@rango-dev/queue-manager-rango-preset 0.1.13-next.14 → 0.1.13-next.15

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.
@@ -498,7 +498,7 @@ var PrettyError = /*#__PURE__*/function (_Error) {
498
498
  return _this;
499
499
  }
500
500
  PrettyError.isPrettyError = function isPrettyError(obj) {
501
- return obj instanceof PrettyError || Object.prototype.hasOwnProperty('_isPrettyError');
501
+ return obj instanceof PrettyError || Object.prototype.hasOwnProperty.call(obj, '_isPrettyError');
502
502
  };
503
503
  var _proto = PrettyError.prototype;
504
504
  _proto.getErrorDetail = function getErrorDetail() {
@@ -1522,7 +1522,7 @@ function singTransaction(actions) {
1522
1522
  errorCode: extraMessageErrorCode
1523
1523
  });
1524
1524
  notifier(_extends({
1525
- eventType: 'contract_rejected'
1525
+ eventType: extraMessageErrorCode === 'REJECTED_BY_USER' ? 'contract_rejected' : 'smart_contract_call_failed'
1526
1526
  }, updateResult));
1527
1527
  failed();
1528
1528
  onFinish();
@@ -1568,7 +1568,7 @@ function singTransaction(actions) {
1568
1568
  errorCode: extraMessageErrorCode
1569
1569
  });
1570
1570
  notifier(_extends({
1571
- eventType: 'contract_rejected'
1571
+ eventType: extraMessageErrorCode === 'REJECTED_BY_USER' ? 'contract_rejected' : 'smart_contract_call_failed'
1572
1572
  }, updateResult));
1573
1573
  failed();
1574
1574
  onFinish();
@@ -1614,7 +1614,7 @@ function singTransaction(actions) {
1614
1614
  errorCode: extraMessageErrorCode
1615
1615
  });
1616
1616
  notifier(_extends({
1617
- eventType: 'contract_rejected'
1617
+ eventType: extraMessageErrorCode === 'REJECTED_BY_USER' ? 'contract_rejected' : 'smart_contract_call_failed'
1618
1618
  }, updateResult));
1619
1619
  failed();
1620
1620
  onFinish();
@@ -1664,7 +1664,7 @@ function singTransaction(actions) {
1664
1664
  errorCode: extraMessageErrorCode
1665
1665
  });
1666
1666
  notifier(_extends({
1667
- eventType: 'transfer_rejected'
1667
+ eventType: extraMessageErrorCode === 'REJECTED_BY_USER' ? 'transfer_rejected' : 'transfer_failed'
1668
1668
  }, updateResult));
1669
1669
  failed();
1670
1670
  onFinish();
@@ -1712,7 +1712,7 @@ function singTransaction(actions) {
1712
1712
  errorCode: extraMessageErrorCode
1713
1713
  });
1714
1714
  notifier(_extends({
1715
- eventType: 'smart_contract_call_failed'
1715
+ eventType: extraMessageErrorCode === 'REJECTED_BY_USER' ? 'contract_rejected' : 'smart_contract_call_failed'
1716
1716
  }, updateResult));
1717
1717
  failed();
1718
1718
  onFinish();