@rialo/ts-cdk 0.1.4 → 0.1.8
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.
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -6
package/dist/index.js
CHANGED
|
@@ -6013,7 +6013,10 @@ var Message = class _Message {
|
|
|
6013
6013
|
);
|
|
6014
6014
|
}
|
|
6015
6015
|
const validFromBytes = data.slice(cursor, cursor + 8);
|
|
6016
|
-
const validFrom = BigInt.asUintN(
|
|
6016
|
+
const validFrom = BigInt.asUintN(
|
|
6017
|
+
64,
|
|
6018
|
+
new DataView(validFromBytes.buffer).getBigUint64(0, true)
|
|
6019
|
+
);
|
|
6017
6020
|
cursor += 8;
|
|
6018
6021
|
const [instructionsLength, newCursor2] = deserializeCompactU162(
|
|
6019
6022
|
data,
|
|
@@ -6071,7 +6074,11 @@ var Message = class _Message {
|
|
|
6071
6074
|
buf.push(...key.toBytes());
|
|
6072
6075
|
});
|
|
6073
6076
|
const validFromBuffer = new ArrayBuffer(8);
|
|
6074
|
-
new DataView(validFromBuffer).setBigUint64(
|
|
6077
|
+
new DataView(validFromBuffer).setBigUint64(
|
|
6078
|
+
0,
|
|
6079
|
+
this.validFrom ?? BigInt(0),
|
|
6080
|
+
true
|
|
6081
|
+
);
|
|
6075
6082
|
buffer.push(...new Uint8Array(validFromBuffer));
|
|
6076
6083
|
this.serializeCompactArray(buffer, this.instructions, (buf, ix) => {
|
|
6077
6084
|
buf.push(ix.programIdIndex);
|