Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix: properly cast the date in evm_setTime (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Georgiev committed Aug 12, 2020
1 parent 18542cc commit e5e8b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/subproviders/geth_api_double.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ GethApiDouble.prototype.evm_increaseTime = function(seconds, callback) {
};

GethApiDouble.prototype.evm_setTime = function(date, callback) {
callback(null, this.state.blockchain.setTime(date));
callback(null, this.state.blockchain.setTime(new Date(date)));
};

GethApiDouble.prototype.evm_mine = function(timestamp, callback) {
Expand Down

0 comments on commit e5e8b80

Please sign in to comment.