@fuel-ts/account 0.0.0-pr-2018-20240410113607 → 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.
package/dist/index.global.js
CHANGED
@@ -28952,7 +28952,7 @@ spurious results.`);
|
|
28952
28952
|
// ../versions/dist/index.mjs
|
28953
28953
|
function getBuiltinVersions() {
|
28954
28954
|
return {
|
28955
|
-
FORC: "0.
|
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
|
-
|
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
|
-
|
31157
|
+
bits: this.toB256()
|
31158
31158
|
};
|
31159
31159
|
}
|
31160
31160
|
/**
|
@@ -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)
|
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);
|