@fuel-ts/account 0.88.0 → 0.88.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.

Potentially problematic release.


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

@@ -32434,7 +32434,7 @@ spurious results.`);
32434
32434
  return {
32435
32435
  FORC: "0.59.0",
32436
32436
  FUEL_CORE: "0.26.0",
32437
- FUELS: "0.88.0"
32437
+ FUELS: "0.88.1"
32438
32438
  };
32439
32439
  }
32440
32440
  function parseVersion(version) {
@@ -34882,7 +34882,7 @@ This unreleased fuel-core build may include features and updates not yet support
34882
34882
  coders;
34883
34883
  #caseIndexCoder;
34884
34884
  #encodedValueSize;
34885
- #hasNestedOption;
34885
+ #shouldValidateLength;
34886
34886
  constructor(name, coders) {
34887
34887
  const caseIndexCoder = new BigNumberCoder("u64");
34888
34888
  const encodedValueSize = Object.values(coders).reduce(
@@ -34894,7 +34894,7 @@ This unreleased fuel-core build may include features and updates not yet support
34894
34894
  this.coders = coders;
34895
34895
  this.#caseIndexCoder = caseIndexCoder;
34896
34896
  this.#encodedValueSize = encodedValueSize;
34897
- this.#hasNestedOption = hasNestedOption(coders);
34897
+ this.#shouldValidateLength = !(this.type === OPTION_CODER_TYPE || hasNestedOption(coders));
34898
34898
  }
34899
34899
  #encodeNativeEnum(value) {
34900
34900
  const valueCoder = this.coders[value];
@@ -34923,7 +34923,7 @@ This unreleased fuel-core build may include features and updates not yet support
34923
34923
  return [caseKey, newOffset];
34924
34924
  }
34925
34925
  decode(data, offset) {
34926
- if (!this.#hasNestedOption && data.length < this.#encodedValueSize) {
34926
+ if (this.#shouldValidateLength && data.length < this.#encodedValueSize) {
34927
34927
  throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid enum data size.`);
34928
34928
  }
34929
34929
  const caseBytes = new BigNumberCoder("u64").decode(data, offset)[0];