phantasma-sdk-ts 0.1.74 → 0.1.75
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/core/vm/ScriptBuilder.js +1 -1
- package/package.json +1 -1
package/core/vm/ScriptBuilder.js
CHANGED
|
@@ -343,7 +343,7 @@ var ScriptBuilder = /** @class */ (function () {
|
|
|
343
343
|
this.EmitLoadBytes(reg, bytes, VMType_1.VMType.Timestamp);
|
|
344
344
|
}
|
|
345
345
|
else if (obj instanceof Date) {
|
|
346
|
-
var num = (obj.getTime()
|
|
346
|
+
var num = (obj.getTime() / 1000) | 0;
|
|
347
347
|
var a = (num & 0xff000000) >> 24;
|
|
348
348
|
var b = (num & 0x00ff0000) >> 16;
|
|
349
349
|
var c = (num & 0x0000ff00) >> 8;
|