@fuel-ts/account 0.0.0-pr-1788-20240222085506 → 0.0.0-pr-1788-20240222085619
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 +15 -15
- package/dist/index.global.js.map +1 -1
- package/dist/test-utils.global.js +15 -15
- package/dist/test-utils.global.js.map +1 -1
- package/package.json +16 -16
package/dist/index.global.js
CHANGED
@@ -34413,9 +34413,9 @@ spurious results.`);
|
|
34413
34413
|
parts.push(new ByteArrayCoder(32).encode(value.nonce));
|
34414
34414
|
parts.push(new NumberCoder("u8").encode(value.witnessIndex));
|
34415
34415
|
parts.push(new U64Coder().encode(value.predicateGasUsed));
|
34416
|
-
parts.push(new NumberCoder("
|
34417
|
-
parts.push(new NumberCoder("
|
34418
|
-
parts.push(new NumberCoder("
|
34416
|
+
parts.push(new NumberCoder("u32").encode(data.length));
|
34417
|
+
parts.push(new NumberCoder("u32").encode(value.predicateLength));
|
34418
|
+
parts.push(new NumberCoder("u32").encode(value.predicateDataLength));
|
34419
34419
|
parts.push(new ByteArrayCoder(data.length).encode(data));
|
34420
34420
|
parts.push(new ByteArrayCoder(value.predicateLength).encode(value.predicate));
|
34421
34421
|
parts.push(new ByteArrayCoder(value.predicateDataLength).encode(value.predicateData));
|
@@ -34442,11 +34442,11 @@ spurious results.`);
|
|
34442
34442
|
const witnessIndex = Number(decoded);
|
34443
34443
|
[decoded, o] = new U64Coder().decode(data, o);
|
34444
34444
|
const predicateGasUsed = decoded;
|
34445
|
-
[decoded, o] = new NumberCoder("
|
34446
|
-
const predicateLength = decoded;
|
34447
|
-
[decoded, o] = new NumberCoder("u16").decode(data, o);
|
34445
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
34448
34446
|
const dataLength2 = decoded;
|
34449
|
-
[decoded, o] = new NumberCoder("
|
34447
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
34448
|
+
const predicateLength = decoded;
|
34449
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
34450
34450
|
const predicateDataLength = decoded;
|
34451
34451
|
[decoded, o] = new ByteArrayCoder(dataLength2).decode(data, o);
|
34452
34452
|
const messageData = decoded;
|
@@ -35013,14 +35013,14 @@ spurious results.`);
|
|
35013
35013
|
}
|
35014
35014
|
encode(value) {
|
35015
35015
|
const parts = [];
|
35016
|
-
parts.push(new NumberCoder("
|
35016
|
+
parts.push(new NumberCoder("u32").encode(value.dataLength));
|
35017
35017
|
parts.push(new ByteArrayCoder(value.dataLength).encode(value.data));
|
35018
35018
|
return concat(parts);
|
35019
35019
|
}
|
35020
35020
|
decode(data, offset) {
|
35021
35021
|
let decoded;
|
35022
35022
|
let o = offset;
|
35023
|
-
[decoded, o] = new NumberCoder("
|
35023
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
35024
35024
|
const dataLength2 = decoded;
|
35025
35025
|
[decoded, o] = new ByteArrayCoder(dataLength2).decode(data, o);
|
35026
35026
|
const witnessData = decoded;
|
@@ -35046,8 +35046,8 @@ spurious results.`);
|
|
35046
35046
|
encode(value) {
|
35047
35047
|
const parts = [];
|
35048
35048
|
parts.push(new U64Coder().encode(value.scriptGasLimit));
|
35049
|
-
parts.push(new NumberCoder("
|
35050
|
-
parts.push(new NumberCoder("
|
35049
|
+
parts.push(new NumberCoder("u32").encode(value.scriptLength));
|
35050
|
+
parts.push(new NumberCoder("u32").encode(value.scriptDataLength));
|
35051
35051
|
parts.push(new NumberCoder("u32").encode(value.policyTypes));
|
35052
35052
|
parts.push(new NumberCoder("u8").encode(value.inputsCount));
|
35053
35053
|
parts.push(new NumberCoder("u8").encode(value.outputsCount));
|
@@ -35066,9 +35066,9 @@ spurious results.`);
|
|
35066
35066
|
let o = offset;
|
35067
35067
|
[decoded, o] = new U64Coder().decode(data, o);
|
35068
35068
|
const scriptGasLimit = decoded;
|
35069
|
-
[decoded, o] = new NumberCoder("
|
35069
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
35070
35070
|
const scriptLength = decoded;
|
35071
|
-
[decoded, o] = new NumberCoder("
|
35071
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
35072
35072
|
const scriptDataLength = decoded;
|
35073
35073
|
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
35074
35074
|
const policyTypes = decoded;
|
@@ -35120,7 +35120,7 @@ spurious results.`);
|
|
35120
35120
|
}
|
35121
35121
|
encode(value) {
|
35122
35122
|
const parts = [];
|
35123
|
-
parts.push(new NumberCoder("
|
35123
|
+
parts.push(new NumberCoder("u32").encode(value.bytecodeLength));
|
35124
35124
|
parts.push(new NumberCoder("u8").encode(value.bytecodeWitnessIndex));
|
35125
35125
|
parts.push(new NumberCoder("u32").encode(value.policyTypes));
|
35126
35126
|
parts.push(new NumberCoder("u16").encode(value.storageSlotsCount));
|
@@ -35140,7 +35140,7 @@ spurious results.`);
|
|
35140
35140
|
decode(data, offset) {
|
35141
35141
|
let decoded;
|
35142
35142
|
let o = offset;
|
35143
|
-
[decoded, o] = new NumberCoder("
|
35143
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
35144
35144
|
const bytecodeLength = decoded;
|
35145
35145
|
[decoded, o] = new NumberCoder("u8").decode(data, o);
|
35146
35146
|
const bytecodeWitnessIndex = decoded;
|