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

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.
@@ -16,7 +16,7 @@ var configs = {
16
16
  API_KEY: RANGO_PUBLIC_API_KEY
17
17
  };
18
18
  function getConfig(name) {
19
- return configs[name];
19
+ return configs[name] || '';
20
20
  }
21
21
  function initConfig(nextConfigs) {
22
22
  var clonedConfigs;
@@ -806,7 +806,7 @@ function logRPCError(error, swap, currentStep, walletType) {
806
806
  var rango = undefined;
807
807
  var httpService = function httpService() {
808
808
  if (rango) return rango;
809
- rango = new RangoClient(getConfig('API_KEY'));
809
+ rango = new RangoClient(getConfig('API_KEY'), getConfig('BASE_URL'));
810
810
  return rango;
811
811
  };
812
812
 
@@ -2206,7 +2206,7 @@ function _checkTransactionStatus() {
2206
2206
  return _context.abrupt("return");
2207
2207
  case 17:
2208
2208
  outputAmount = ((_status = status) == null ? void 0 : _status.outputAmount) || (!!currentStep.outputAmount ? currentStep.outputAmount : null);
2209
- prevOutputAmount = currentStep.outputAmount;
2209
+ prevOutputAmount = currentStep.outputAmount || null;
2210
2210
  swap.extraMessage = ((_status2 = status) == null ? void 0 : _status2.extraMessage) || swap.extraMessage;
2211
2211
  swap.extraMessageSeverity = MessageSeverity.info;
2212
2212
  swap.extraMessageDetail = '';