@fuel-ts/account 0.0.0-pr-2018-20240410113607 → 0.0.0-pr-2017-20240411102836

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.

@@ -31914,7 +31914,7 @@ spurious results.`);
31914
31914
  // ../versions/dist/index.mjs
31915
31915
  function getBuiltinVersions() {
31916
31916
  return {
31917
- FORC: "0.49.3",
31917
+ FORC: "0.52.1",
31918
31918
  FUEL_CORE: "0.22.1",
31919
31919
  FUELS: "0.79.0"
31920
31920
  };
@@ -34627,7 +34627,7 @@ This unreleased fuel-core build may include features and updates not yet support
34627
34627
  toEvmAddress() {
34628
34628
  const b256Address = toB256(this.bech32Address);
34629
34629
  return {
34630
- value: clearFirst12BytesFromB256(b256Address)
34630
+ bits: clearFirst12BytesFromB256(b256Address)
34631
34631
  };
34632
34632
  }
34633
34633
  /**
@@ -34637,7 +34637,7 @@ This unreleased fuel-core build may include features and updates not yet support
34637
34637
  */
34638
34638
  toAssetId() {
34639
34639
  return {
34640
- value: this.toB256()
34640
+ bits: this.toB256()
34641
34641
  };
34642
34642
  }
34643
34643
  /**
@@ -35229,7 +35229,6 @@ This unreleased fuel-core build may include features and updates not yet support
35229
35229
  const padding = new Uint8Array(WORD_SIZE - encoded.length % WORD_SIZE);
35230
35230
  return concatBytes2([encoded, padding]);
35231
35231
  };
35232
- var isUint8Array = (value) => value instanceof Uint8Array;
35233
35232
  var ArrayCoder = class extends Coder {
35234
35233
  coder;
35235
35234
  length;
@@ -35771,11 +35770,8 @@ This unreleased fuel-core build may include features and updates not yet support
35771
35770
  this.coder = coder;
35772
35771
  }
35773
35772
  encode(value) {
35774
- if (!Array.isArray(value) && !isUint8Array(value)) {
35775
- throw new FuelError(
35776
- ErrorCode.ENCODE_ERROR,
35777
- `Expected array value, or a Uint8Array. You can use arrayify to convert a value to a Uint8Array.`
35778
- );
35773
+ if (!Array.isArray(value)) {
35774
+ throw new FuelError(ErrorCode.ENCODE_ERROR, `Expected array value.`);
35779
35775
  }
35780
35776
  const parts = [];
35781
35777
  const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);