@fuel-ts/account 0.0.0-pr-2017-20240411142607 → 0.0.0-pr-2044-20240411144204

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.

@@ -28952,7 +28952,7 @@ spurious results.`);
28952
28952
  // ../versions/dist/index.mjs
28953
28953
  function getBuiltinVersions() {
28954
28954
  return {
28955
- FORC: "0.52.1",
28955
+ FORC: "0.53.0",
28956
28956
  FUEL_CORE: "0.22.1",
28957
28957
  FUELS: "0.79.0"
28958
28958
  };
@@ -31764,7 +31764,6 @@ This unreleased fuel-core build may include features and updates not yet support
31764
31764
  const padding = new Uint8Array(WORD_SIZE - encoded.length % WORD_SIZE);
31765
31765
  return concatBytes2([encoded, padding]);
31766
31766
  };
31767
- var isUint8Array = (value) => value instanceof Uint8Array;
31768
31767
  var ArrayCoder = class extends Coder {
31769
31768
  coder;
31770
31769
  length;
@@ -32306,11 +32305,8 @@ This unreleased fuel-core build may include features and updates not yet support
32306
32305
  this.coder = coder;
32307
32306
  }
32308
32307
  encode(value) {
32309
- if (!Array.isArray(value) && !isUint8Array(value)) {
32310
- throw new FuelError(
32311
- ErrorCode.ENCODE_ERROR,
32312
- `Expected array value, or a Uint8Array. You can use arrayify to convert a value to a Uint8Array.`
32313
- );
32308
+ if (!Array.isArray(value)) {
32309
+ throw new FuelError(ErrorCode.ENCODE_ERROR, `Expected array value.`);
32314
32310
  }
32315
32311
  const parts = [];
32316
32312
  const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
@@ -33229,15 +33225,6 @@ This unreleased fuel-core build may include features and updates not yet support
33229
33225
  });
33230
33226
  return coder.decode(bytes3, 0);
33231
33227
  }
33232
- /**
33233
- * Checks if the function is read-only i.e. it only reads from storage, does not write to it.
33234
- *
33235
- * @returns True if the function is read-only or pure, false otherwise.
33236
- */
33237
- isReadOnly() {
33238
- const storageAttribute = this.attributes.find((attr) => attr.name === "storage");
33239
- return !storageAttribute?.arguments.includes("write");
33240
- }
33241
33228
  };
33242
33229
  var Interface = class {
33243
33230
  functions;
@@ -33301,8 +33288,7 @@ This unreleased fuel-core build may include features and updates not yet support
33301
33288
  }
33302
33289
  return AbiCoder.encode(this.jsonAbi, configurable.configurableType, value, {
33303
33290
  isRightPadded: true,
33304
- // TODO: Review support for configurables in v1 encoding when it becomes available
33305
- encoding: ENCODING_V0
33291
+ encoding: this.jsonAbi.encoding
33306
33292
  });
33307
33293
  }
33308
33294
  getTypeById(typeId) {
@@ -39773,7 +39759,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39773
39759
  assetId,
39774
39760
  txPointer: "0x00000000000000000000000000000000",
39775
39761
  witnessIndex,
39776
- predicate: predicate?.bytes
39762
+ predicate: predicate?.bytes,
39763
+ predicateData: predicate?.predicateDataBytes
39777
39764
  };
39778
39765
  this.pushInput(input);
39779
39766
  this.addChangeOutput(owner, assetId);
@@ -39805,7 +39792,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39805
39792
  recipient: recipient.toB256(),
39806
39793
  amount,
39807
39794
  witnessIndex,
39808
- predicate: predicate?.bytes
39795
+ predicate: predicate?.bytes,
39796
+ predicateData: predicate?.predicateDataBytes
39809
39797
  };
39810
39798
  this.pushInput(input);
39811
39799
  this.addChangeOutput(recipient, assetId);
@@ -47797,6 +47785,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
47797
47785
  // src/predicate/predicate.ts
47798
47786
  var Predicate = class extends Account {
47799
47787
  bytes;
47788
+ predicateDataBytes = Uint8Array.from([]);
47800
47789
  predicateData = [];
47801
47790
  interface;
47802
47791
  /**