@fuel-ts/account 0.0.0-rc-2034-20240410172045 → 0.0.0-rc-2034-20240410182856

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.

@@ -31605,6 +31605,7 @@ This unreleased fuel-core build may include features and updates not yet support
31605
31605
  var ENCODING_V1 = "1";
31606
31606
  var WORD_SIZE = 8;
31607
31607
  var BYTES_32 = 32;
31608
+ var UTXO_ID_LEN = BYTES_32 + 1;
31608
31609
  var ASSET_ID_LEN = BYTES_32;
31609
31610
  var ADDRESS_LEN = BYTES_32;
31610
31611
  var NONCE_LEN = BYTES_32;
@@ -38863,8 +38864,8 @@ ${MessageCoinFragmentFragmentDoc}`;
38863
38864
  const predicateData = arrayify(value.predicateData ?? "0x");
38864
38865
  return {
38865
38866
  type: InputType.Coin,
38866
- txID: hexlify(arrayify(value.id).slice(0, 32)),
38867
- outputIndex: toNumber2(arrayify(value.id).slice(32, 33)),
38867
+ txID: hexlify(arrayify(value.id).slice(0, BYTES_32)),
38868
+ outputIndex: toNumber2(arrayify(value.id).slice(BYTES_32, UTXO_ID_LEN)),
38868
38869
  owner: hexlify(value.owner),
38869
38870
  amount: bn(value.amount),
38870
38871
  assetId: hexlify(value.assetId),
@@ -39959,12 +39960,12 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39959
39960
  const updateAssetInput = (assetId, quantity) => {
39960
39961
  const assetInput = findAssetInput(assetId);
39961
39962
  if (assetInput && "assetId" in assetInput) {
39962
- assetInput.id = hexlify(randomBytes22(33));
39963
+ assetInput.id = hexlify(randomBytes22(UTXO_ID_LEN));
39963
39964
  assetInput.amount = quantity;
39964
39965
  } else {
39965
39966
  this.addResources([
39966
39967
  {
39967
- id: hexlify(randomBytes22(33)),
39968
+ id: hexlify(randomBytes22(UTXO_ID_LEN)),
39968
39969
  amount: quantity,
39969
39970
  assetId,
39970
39971
  owner: resourcesOwner || Address.fromRandom(),