@fuel-ts/account 0.0.0-rc-2037-20240418115444 → 0.0.0-rc-2037-20240418115909

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.

@@ -39529,12 +39529,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39529
39529
  var isRequestInputCoin = (input) => input.type === InputType.Coin;
39530
39530
  var isRequestInputMessage = (input) => input.type === InputType.Message;
39531
39531
  var isRequestInputResource = (input) => isRequestInputCoin(input) || isRequestInputMessage(input);
39532
- var getRequestInputResourceOwner = (input) => {
39533
- if (isRequestInputCoin(input)) {
39534
- return input.owner;
39535
- }
39536
- return input.recipient;
39537
- };
39532
+ var getRequestInputResourceOwner = (input) => isRequestInputCoin(input) ? input.owner : input.recipient;
39538
39533
  var isRequestInputResourceFromOwner = (input, owner) => getRequestInputResourceOwner(input) === owner.toB256();
39539
39534
  var cacheResources = (resources) => resources.reduce(
39540
39535
  (cache2, resource) => {
@@ -47928,7 +47923,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
47928
47923
  /**
47929
47924
  * Retrieves resources satisfying the spend query for the account.
47930
47925
  *
47931
- * @param quantities - IDs of coins to exclude.
47926
+ * @param quantities - Coins to retrieve.
47932
47927
  * @param excludedIds - IDs of resources to be excluded from the query.
47933
47928
  * @returns A promise that resolves to an array of Resources.
47934
47929
  */
@@ -48018,6 +48013,12 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
48018
48013
  }
48019
48014
  return mutatedBytes;
48020
48015
  }
48016
+ /**
48017
+ * Returns the index of the witness placeholder that was added to this predicate.
48018
+ * If no witness placeholder was added, it returns -1.
48019
+ * @param request - The transaction request.
48020
+ * @returns The index of the witness placeholder, or -1 if there is no witness placeholder.
48021
+ */
48021
48022
  getIndexFromPlaceholderWitness(request) {
48022
48023
  const predicateInputs = request.inputs.filter(isRequestInputResource).filter((input) => isRequestInputResourceFromOwner(input, this.address));
48023
48024
  let index = -1;