@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.
- package/dist/index.global.js +5 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +20 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-request/input.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/test-utils.global.js +5 -4
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +16 -14
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +6 -4
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.global.js
CHANGED
@@ -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,
|
38867
|
-
outputIndex: toNumber2(arrayify(value.id).slice(
|
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(
|
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(
|
39968
|
+
id: hexlify(randomBytes22(UTXO_ID_LEN)),
|
39968
39969
|
amount: quantity,
|
39969
39970
|
assetId,
|
39970
39971
|
owner: resourcesOwner || Address.fromRandom(),
|