@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
package/dist/index.global.js
CHANGED
@@ -28954,7 +28954,7 @@ spurious results.`);
|
|
28954
28954
|
return {
|
28955
28955
|
FORC: "0.49.3",
|
28956
28956
|
FUEL_CORE: "0.22.1",
|
28957
|
-
FUELS: "0.
|
28957
|
+
FUELS: "0.82.0"
|
28958
28958
|
};
|
28959
28959
|
}
|
28960
28960
|
function parseVersion(version2) {
|
@@ -32342,6 +32342,20 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32342
32342
|
];
|
32343
32343
|
}
|
32344
32344
|
};
|
32345
|
+
var getEncodingVersion = (encoding) => {
|
32346
|
+
switch (encoding) {
|
32347
|
+
case void 0:
|
32348
|
+
case ENCODING_V0:
|
32349
|
+
return ENCODING_V0;
|
32350
|
+
case ENCODING_V1:
|
32351
|
+
return ENCODING_V1;
|
32352
|
+
default:
|
32353
|
+
throw new FuelError(
|
32354
|
+
ErrorCode.UNSUPPORTED_ENCODING_VERSION,
|
32355
|
+
`Encoding version '${encoding}' is unsupported.`
|
32356
|
+
);
|
32357
|
+
}
|
32358
|
+
};
|
32345
32359
|
var findFunctionByName = (abi, name) => {
|
32346
32360
|
const fn = abi.functions.find((f2) => f2.name === name);
|
32347
32361
|
if (!fn) {
|
@@ -33106,7 +33120,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33106
33120
|
this.signature = FunctionFragment.getSignature(this.jsonAbi, this.jsonFn);
|
33107
33121
|
this.selector = FunctionFragment.getFunctionSelector(this.signature);
|
33108
33122
|
this.selectorBytes = new StdStringCoder2().encode(name);
|
33109
|
-
this.encoding =
|
33123
|
+
this.encoding = getEncodingVersion(jsonAbi.encoding);
|
33110
33124
|
this.isInputDataPointer = this.#isInputDataPointer();
|
33111
33125
|
this.outputMetadata = {
|
33112
33126
|
isHeapType: this.#isOutputDataHeap(),
|
@@ -33244,8 +33258,10 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33244
33258
|
functions;
|
33245
33259
|
configurables;
|
33246
33260
|
jsonAbi;
|
33261
|
+
encoding;
|
33247
33262
|
constructor(jsonAbi) {
|
33248
33263
|
this.jsonAbi = jsonAbi;
|
33264
|
+
this.encoding = getEncodingVersion(jsonAbi.encoding);
|
33249
33265
|
this.functions = Object.fromEntries(
|
33250
33266
|
this.jsonAbi.functions.map((x) => [x.name, new FunctionFragment(this.jsonAbi, x.name)])
|
33251
33267
|
);
|
@@ -33289,7 +33305,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33289
33305
|
);
|
33290
33306
|
}
|
33291
33307
|
return AbiCoder.decode(this.jsonAbi, loggedType.loggedType, arrayify(data), 0, {
|
33292
|
-
encoding: this.
|
33308
|
+
encoding: this.encoding
|
33293
33309
|
});
|
33294
33310
|
}
|
33295
33311
|
encodeConfigurable(name, value) {
|