@fuel-ts/account 0.0.0-rc-2021-20240408141516 → 0.0.0-rc-2021-20240409111335

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.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

@@ -31300,7 +31300,7 @@ This unreleased fuel-core build may include features and updates not yet support
31300
31300
  var import_bn = __toESM(require_bn(), 1);
31301
31301
  var DEFAULT_PRECISION = 9;
31302
31302
  var DEFAULT_MIN_PRECISION = 3;
31303
- var DECIMAL_UNITS = 9;
31303
+ var DEFAULT_DECIMAL_UNITS = 9;
31304
31304
  function toFixed(value, options) {
31305
31305
  const { precision = DEFAULT_PRECISION, minPrecision = DEFAULT_MIN_PRECISION } = options || {};
31306
31306
  const [valueUnits = "0", valueDecimals = "0"] = String(value || "0.0").split(".");
@@ -31366,7 +31366,7 @@ This unreleased fuel-core build may include features and updates not yet support
31366
31366
  }
31367
31367
  format(options) {
31368
31368
  const {
31369
- units = DECIMAL_UNITS,
31369
+ units = DEFAULT_DECIMAL_UNITS,
31370
31370
  precision = DEFAULT_PRECISION,
31371
31371
  minPrecision = DEFAULT_MIN_PRECISION
31372
31372
  } = options || {};
@@ -31382,7 +31382,7 @@ This unreleased fuel-core build may include features and updates not yet support
31382
31382
  }
31383
31383
  return formattedFixed;
31384
31384
  }
31385
- formatUnits(units = DECIMAL_UNITS) {
31385
+ formatUnits(units = DEFAULT_DECIMAL_UNITS) {
31386
31386
  const valueUnits = this.toString().slice(0, units * -1);
31387
31387
  const valueDecimals = this.toString().slice(units * -1);
31388
31388
  const length = valueDecimals.length;
@@ -31491,7 +31491,7 @@ This unreleased fuel-core build may include features and updates not yet support
31491
31491
  // END ANCHOR: OVERRIDES to avoid losing references
31492
31492
  };
31493
31493
  var bn = (value, base, endian) => new BN(value, base, endian);
31494
- bn.parseUnits = (value, units = DECIMAL_UNITS) => {
31494
+ bn.parseUnits = (value, units = DEFAULT_DECIMAL_UNITS) => {
31495
31495
  const valueToParse = value === "." ? "0." : value;
31496
31496
  const [valueUnits = "0", valueDecimals = "0"] = valueToParse.split(".");
31497
31497
  const length = valueDecimals.length;
@@ -38859,7 +38859,9 @@ ${MessageCoinFragmentFragmentDoc}`;
38859
38859
  } catch (e) {
38860
38860
  throw new FuelError(
38861
38861
  ErrorCode.STREAM_PARSING_ERROR,
38862
- `Error while parsing stream data response: ${text}`
38862
+ `Error while parsing stream data response: ${text}
38863
+
38864
+ Thrown error: ${e}`
38863
38865
  );
38864
38866
  }
38865
38867
  if (Array.isArray(errors)) {