@fuel-ts/account 0.81.0 → 0.82.0
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 +19 -3
- package/dist/index.global.js.map +1 -1
- package/dist/test-utils.global.js +19 -3
- package/dist/test-utils.global.js.map +1 -1
- package/package.json +15 -15
@@ -31916,7 +31916,7 @@ spurious results.`);
|
|
31916
31916
|
return {
|
31917
31917
|
FORC: "0.49.3",
|
31918
31918
|
FUEL_CORE: "0.22.1",
|
31919
|
-
FUELS: "0.
|
31919
|
+
FUELS: "0.82.0"
|
31920
31920
|
};
|
31921
31921
|
}
|
31922
31922
|
function parseVersion(version2) {
|
@@ -35807,6 +35807,20 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35807
35807
|
];
|
35808
35808
|
}
|
35809
35809
|
};
|
35810
|
+
var getEncodingVersion = (encoding) => {
|
35811
|
+
switch (encoding) {
|
35812
|
+
case void 0:
|
35813
|
+
case ENCODING_V0:
|
35814
|
+
return ENCODING_V0;
|
35815
|
+
case ENCODING_V1:
|
35816
|
+
return ENCODING_V1;
|
35817
|
+
default:
|
35818
|
+
throw new FuelError(
|
35819
|
+
ErrorCode.UNSUPPORTED_ENCODING_VERSION,
|
35820
|
+
`Encoding version '${encoding}' is unsupported.`
|
35821
|
+
);
|
35822
|
+
}
|
35823
|
+
};
|
35810
35824
|
var findFunctionByName = (abi, name) => {
|
35811
35825
|
const fn = abi.functions.find((f2) => f2.name === name);
|
35812
35826
|
if (!fn) {
|
@@ -36571,7 +36585,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36571
36585
|
this.signature = FunctionFragment.getSignature(this.jsonAbi, this.jsonFn);
|
36572
36586
|
this.selector = FunctionFragment.getFunctionSelector(this.signature);
|
36573
36587
|
this.selectorBytes = new StdStringCoder2().encode(name);
|
36574
|
-
this.encoding =
|
36588
|
+
this.encoding = getEncodingVersion(jsonAbi.encoding);
|
36575
36589
|
this.isInputDataPointer = this.#isInputDataPointer();
|
36576
36590
|
this.outputMetadata = {
|
36577
36591
|
isHeapType: this.#isOutputDataHeap(),
|
@@ -36709,8 +36723,10 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36709
36723
|
functions;
|
36710
36724
|
configurables;
|
36711
36725
|
jsonAbi;
|
36726
|
+
encoding;
|
36712
36727
|
constructor(jsonAbi) {
|
36713
36728
|
this.jsonAbi = jsonAbi;
|
36729
|
+
this.encoding = getEncodingVersion(jsonAbi.encoding);
|
36714
36730
|
this.functions = Object.fromEntries(
|
36715
36731
|
this.jsonAbi.functions.map((x) => [x.name, new FunctionFragment(this.jsonAbi, x.name)])
|
36716
36732
|
);
|
@@ -36754,7 +36770,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36754
36770
|
);
|
36755
36771
|
}
|
36756
36772
|
return AbiCoder.decode(this.jsonAbi, loggedType.loggedType, arrayify(data), 0, {
|
36757
|
-
encoding: this.
|
36773
|
+
encoding: this.encoding
|
36758
36774
|
});
|
36759
36775
|
}
|
36760
36776
|
encodeConfigurable(name, value) {
|