@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
@@ -37893,9 +37893,9 @@ spurious results.`);
|
|
37893
37893
|
parts.push(new ByteArrayCoder(32).encode(value.nonce));
|
37894
37894
|
parts.push(new NumberCoder("u8").encode(value.witnessIndex));
|
37895
37895
|
parts.push(new U64Coder().encode(value.predicateGasUsed));
|
37896
|
-
parts.push(new NumberCoder("
|
37897
|
-
parts.push(new NumberCoder("
|
37898
|
-
parts.push(new NumberCoder("
|
37896
|
+
parts.push(new NumberCoder("u32").encode(data.length));
|
37897
|
+
parts.push(new NumberCoder("u32").encode(value.predicateLength));
|
37898
|
+
parts.push(new NumberCoder("u32").encode(value.predicateDataLength));
|
37899
37899
|
parts.push(new ByteArrayCoder(data.length).encode(data));
|
37900
37900
|
parts.push(new ByteArrayCoder(value.predicateLength).encode(value.predicate));
|
37901
37901
|
parts.push(new ByteArrayCoder(value.predicateDataLength).encode(value.predicateData));
|
@@ -37922,11 +37922,11 @@ spurious results.`);
|
|
37922
37922
|
const witnessIndex = Number(decoded);
|
37923
37923
|
[decoded, o] = new U64Coder().decode(data, o);
|
37924
37924
|
const predicateGasUsed = decoded;
|
37925
|
-
[decoded, o] = new NumberCoder("
|
37926
|
-
const predicateLength = decoded;
|
37927
|
-
[decoded, o] = new NumberCoder("u16").decode(data, o);
|
37925
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
37928
37926
|
const dataLength2 = decoded;
|
37929
|
-
[decoded, o] = new NumberCoder("
|
37927
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
37928
|
+
const predicateLength = decoded;
|
37929
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
37930
37930
|
const predicateDataLength = decoded;
|
37931
37931
|
[decoded, o] = new ByteArrayCoder(dataLength2).decode(data, o);
|
37932
37932
|
const messageData = decoded;
|
@@ -38493,14 +38493,14 @@ spurious results.`);
|
|
38493
38493
|
}
|
38494
38494
|
encode(value) {
|
38495
38495
|
const parts = [];
|
38496
|
-
parts.push(new NumberCoder("
|
38496
|
+
parts.push(new NumberCoder("u32").encode(value.dataLength));
|
38497
38497
|
parts.push(new ByteArrayCoder(value.dataLength).encode(value.data));
|
38498
38498
|
return concat(parts);
|
38499
38499
|
}
|
38500
38500
|
decode(data, offset) {
|
38501
38501
|
let decoded;
|
38502
38502
|
let o = offset;
|
38503
|
-
[decoded, o] = new NumberCoder("
|
38503
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
38504
38504
|
const dataLength2 = decoded;
|
38505
38505
|
[decoded, o] = new ByteArrayCoder(dataLength2).decode(data, o);
|
38506
38506
|
const witnessData = decoded;
|
@@ -38526,8 +38526,8 @@ spurious results.`);
|
|
38526
38526
|
encode(value) {
|
38527
38527
|
const parts = [];
|
38528
38528
|
parts.push(new U64Coder().encode(value.scriptGasLimit));
|
38529
|
-
parts.push(new NumberCoder("
|
38530
|
-
parts.push(new NumberCoder("
|
38529
|
+
parts.push(new NumberCoder("u32").encode(value.scriptLength));
|
38530
|
+
parts.push(new NumberCoder("u32").encode(value.scriptDataLength));
|
38531
38531
|
parts.push(new NumberCoder("u32").encode(value.policyTypes));
|
38532
38532
|
parts.push(new NumberCoder("u8").encode(value.inputsCount));
|
38533
38533
|
parts.push(new NumberCoder("u8").encode(value.outputsCount));
|
@@ -38546,9 +38546,9 @@ spurious results.`);
|
|
38546
38546
|
let o = offset;
|
38547
38547
|
[decoded, o] = new U64Coder().decode(data, o);
|
38548
38548
|
const scriptGasLimit = decoded;
|
38549
|
-
[decoded, o] = new NumberCoder("
|
38549
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
38550
38550
|
const scriptLength = decoded;
|
38551
|
-
[decoded, o] = new NumberCoder("
|
38551
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
38552
38552
|
const scriptDataLength = decoded;
|
38553
38553
|
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
38554
38554
|
const policyTypes = decoded;
|
@@ -38600,7 +38600,7 @@ spurious results.`);
|
|
38600
38600
|
}
|
38601
38601
|
encode(value) {
|
38602
38602
|
const parts = [];
|
38603
|
-
parts.push(new NumberCoder("
|
38603
|
+
parts.push(new NumberCoder("u32").encode(value.bytecodeLength));
|
38604
38604
|
parts.push(new NumberCoder("u8").encode(value.bytecodeWitnessIndex));
|
38605
38605
|
parts.push(new NumberCoder("u32").encode(value.policyTypes));
|
38606
38606
|
parts.push(new NumberCoder("u16").encode(value.storageSlotsCount));
|
@@ -38620,7 +38620,7 @@ spurious results.`);
|
|
38620
38620
|
decode(data, offset) {
|
38621
38621
|
let decoded;
|
38622
38622
|
let o = offset;
|
38623
|
-
[decoded, o] = new NumberCoder("
|
38623
|
+
[decoded, o] = new NumberCoder("u32").decode(data, o);
|
38624
38624
|
const bytecodeLength = decoded;
|
38625
38625
|
[decoded, o] = new NumberCoder("u8").decode(data, o);
|
38626
38626
|
const bytecodeWitnessIndex = decoded;
|