phantasma-sdk-ts 0.1.75 → 0.1.76
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
CHANGED
|
@@ -478,7 +478,7 @@ var ScriptBuilder = /** @class */ (function () {
|
|
|
478
478
|
};
|
|
479
479
|
//#endregion
|
|
480
480
|
ScriptBuilder.prototype.EmitTimestamp = function (obj) {
|
|
481
|
-
var num = (obj.getTime()
|
|
481
|
+
var num = (obj.getTime() / 1000) | 0;
|
|
482
482
|
var a = (num & 0xff000000) >> 24;
|
|
483
483
|
var b = (num & 0x00ff0000) >> 16;
|
|
484
484
|
var c = (num & 0x0000ff00) >> 8;
|
package/package.json
CHANGED
|
@@ -449,7 +449,7 @@ export class ScriptBuilder {
|
|
|
449
449
|
//#endregion
|
|
450
450
|
|
|
451
451
|
public EmitTimestamp(obj: Date): this {
|
|
452
|
-
let num = (obj.getTime()
|
|
452
|
+
let num = (obj.getTime() / 1000) | 0;
|
|
453
453
|
|
|
454
454
|
let a = (num & 0xff000000) >> 24;
|
|
455
455
|
let b = (num & 0x00ff0000) >> 16;
|