@fuel-ts/account 0.0.0-pr-2017-20240411102002 → 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.

@@ -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;
@@ -39772,7 +39759,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39772
39759
  assetId,
39773
39760
  txPointer: "0x00000000000000000000000000000000",
39774
39761
  witnessIndex,
39775
- predicate: predicate?.bytes
39762
+ predicate: predicate?.bytes,
39763
+ predicateData: predicate?.predicateDataBytes
39776
39764
  };
39777
39765
  this.pushInput(input);
39778
39766
  this.addChangeOutput(owner, assetId);
@@ -39804,7 +39792,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39804
39792
  recipient: recipient.toB256(),
39805
39793
  amount,
39806
39794
  witnessIndex,
39807
- predicate: predicate?.bytes
39795
+ predicate: predicate?.bytes,
39796
+ predicateData: predicate?.predicateDataBytes
39808
39797
  };
39809
39798
  this.pushInput(input);
39810
39799
  this.addChangeOutput(recipient, assetId);
@@ -47796,6 +47785,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
47796
47785
  // src/predicate/predicate.ts
47797
47786
  var Predicate = class extends Account {
47798
47787
  bytes;
47788
+ predicateDataBytes = Uint8Array.from([]);
47799
47789
  predicateData = [];
47800
47790
  interface;
47801
47791
  /**