From c9a76bb78ba7e138f5f129fd36263d64bdd24110 Mon Sep 17 00:00:00 2001 From: Larry Date: Wed, 27 Jan 2021 21:15:54 +0800 Subject: [PATCH] temp change tx timestamp to ms --- lib/nebulas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nebulas.js b/lib/nebulas.js index 8fcca2d..38532b2 100644 --- a/lib/nebulas.js +++ b/lib/nebulas.js @@ -1433,7 +1433,7 @@ var Transaction = function (options) { this.value = utils.toBigNumber(options.value); if (!this.value.isInteger()) throw new Error("Invalid value! The minimum unit is wei (1^-18nas) "); this.nonce = options.nonce; - this.timestamp = Math.floor(new Date().getTime() / 1000); + this.timestamp = Math.floor(new Date().getTime()); this.contract = options.contract; this.gasPrice = utils.toBigNumber(options.gasPrice); this.gasLimit = utils.toBigNumber(options.gasLimit);