aboutsummaryrefslogtreecommitdiffstats
path: root/core/evm.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/evm.go')
-rw-r--r--core/evm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/evm.go b/core/evm.go
index fcc3cd93e..3a0c0e7f8 100644
--- a/core/evm.go
+++ b/core/evm.go
@@ -64,7 +64,7 @@ func NewEVMContext(msg Message, header *types.Header, chain ChainContext, author
Origin: msg.From(),
Coinbase: beneficiary,
BlockNumber: new(big.Int).Set(header.Number),
- Time: new(big.Int).SetUint64(header.Time),
+ Time: new(big.Int).SetUint64(header.Time / 1000), // seconds.
Randomness: header.Randomness,
Difficulty: new(big.Int).Set(header.Difficulty),
Round: new(big.Int).SetUint64(header.Round),