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

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.49.3",
28955
+ FORC: "0.52.1",
28956
28956
  FUEL_CORE: "0.22.1",
28957
28957
  FUELS: "0.79.0"
28958
28958
  };
@@ -31144,7 +31144,7 @@ This unreleased fuel-core build may include features and updates not yet support
31144
31144
  toEvmAddress() {
31145
31145
  const b256Address = toB256(this.bech32Address);
31146
31146
  return {
31147
- value: clearFirst12BytesFromB256(b256Address)
31147
+ bits: clearFirst12BytesFromB256(b256Address)
31148
31148
  };
31149
31149
  }
31150
31150
  /**
@@ -31154,7 +31154,7 @@ This unreleased fuel-core build may include features and updates not yet support
31154
31154
  */
31155
31155
  toAssetId() {
31156
31156
  return {
31157
- value: this.toB256()
31157
+ bits: this.toB256()
31158
31158
  };
31159
31159
  }
31160
31160
  /**
@@ -33229,6 +33229,15 @@ This unreleased fuel-core build may include features and updates not yet support
33229
33229
  });
33230
33230
  return coder.decode(bytes3, 0);
33231
33231
  }
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
+ }
33232
33241
  };
33233
33242
  var Interface = class {
33234
33243
  functions;
@@ -39763,8 +39772,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39763
39772
  assetId,
39764
39773
  txPointer: "0x00000000000000000000000000000000",
39765
39774
  witnessIndex,
39766
- predicate: predicate?.bytes,
39767
- predicateData: predicate?.predicateDataBytes
39775
+ predicate: predicate?.bytes
39768
39776
  };
39769
39777
  this.pushInput(input);
39770
39778
  this.addChangeOutput(owner, assetId);
@@ -39796,8 +39804,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39796
39804
  recipient: recipient.toB256(),
39797
39805
  amount,
39798
39806
  witnessIndex,
39799
- predicate: predicate?.bytes,
39800
- predicateData: predicate?.predicateDataBytes
39807
+ predicate: predicate?.bytes
39801
39808
  };
39802
39809
  this.pushInput(input);
39803
39810
  this.addChangeOutput(recipient, assetId);
@@ -47789,7 +47796,6 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
47789
47796
  // src/predicate/predicate.ts
47790
47797
  var Predicate = class extends Account {
47791
47798
  bytes;
47792
- predicateDataBytes = Uint8Array.from([]);
47793
47799
  predicateData = [];
47794
47800
  interface;
47795
47801
  /**