From 59b28cd1b2bb67a065bf065640e3c410aaa54ca2 Mon Sep 17 00:00:00 2001 From: Coffepots Date: Fri, 6 Apr 2018 18:59:32 +0100 Subject: [PATCH] More descriptive comment on timestamp --- src/logic/block_ops.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logic/block_ops.nim b/src/logic/block_ops.nim index 5bb9f8fb1..a4caf0721 100644 --- a/src/logic/block_ops.nim +++ b/src/logic/block_ops.nim @@ -16,7 +16,9 @@ proc coinbase*(computation) = stack.push(vmState.coinbase) proc timestamp*(computation) = - stack.push(vmState.timestamp.uint64.u256) # TODO: EthTime (from Time) is distinct + # TODO: EthTime is an alias of Time, which is a distinct int64 so can't use u256(int64) + # This may have implications for different platforms. + stack.push(vmState.timestamp.uint64.u256) proc number*(computation) = stack.push(vmState.blockNumber)