@rango-dev/queue-manager-rango-preset 0.1.12-next.1 → 0.1.12-next.4

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.
@@ -1344,6 +1344,11 @@ function onBlockForChangeNetwork(_event, meta) {
1344
1344
  if (_result) {
1345
1345
  _result.then(function () {
1346
1346
  queue.unblock();
1347
+ })["catch"](function (error) {
1348
+ // ignore switch network errors
1349
+ console.log({
1350
+ error: error
1351
+ });
1347
1352
  });
1348
1353
  }
1349
1354
  }
@@ -2148,9 +2153,11 @@ function _throwOnOK() {
2148
2153
  }));
2149
2154
  return _throwOnOK.apply(this, arguments);
2150
2155
  }
2151
- function cancelSwap(swap) {
2156
+ function cancelSwap(swap, manager) {
2157
+ var _claimQueue2 = claimQueue(),
2158
+ reset = _claimQueue2.reset;
2152
2159
  swap.actions.cancel();
2153
- return updateSwapStatus({
2160
+ var updateResult = updateSwapStatus({
2154
2161
  getStorage: swap.actions.getStorage,
2155
2162
  setStorage: swap.actions.setStorage,
2156
2163
  message: 'Swap canceled by user.',
@@ -2159,6 +2166,9 @@ function cancelSwap(swap) {
2159
2166
  nextStepStatus: 'failed',
2160
2167
  errorCode: 'USER_CANCEL'
2161
2168
  });
2169
+ reset();
2170
+ if (manager) manager == null ? void 0 : manager.retry();
2171
+ return updateResult;
2162
2172
  }
2163
2173
 
2164
2174
  var INTERVAL_FOR_CHECK = 3000;