phantasma-sdk-ts 0.1.73 → 0.1.74
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/package.json
CHANGED
|
@@ -290,7 +290,7 @@ export class ScriptBuilder {
|
|
|
290
290
|
let bytes = Array.from(Serialization.Serialize(obj));
|
|
291
291
|
this.EmitLoadBytes(reg, bytes, VMType.Timestamp);
|
|
292
292
|
} else if (obj instanceof Date) {
|
|
293
|
-
let num = (obj.getTime()
|
|
293
|
+
let num = (obj.getTime() / 1000) | 0;
|
|
294
294
|
|
|
295
295
|
let a = (num & 0xff000000) >> 24;
|
|
296
296
|
let b = (num & 0x00ff0000) >> 16;
|