Skip to content

Commit

Permalink
temp change tx timestamp to ms
Browse files Browse the repository at this point in the history
  • Loading branch information
qywang2012 committed Jan 27, 2021
1 parent 2ebc337 commit c9a76bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nebulas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c9a76bb

Please sign in to comment.