Remove double line and use ttmath for generating u256

This commit is contained in:
Coffepots 2018-04-06 19:34:11 +01:00
parent c66afe18dd
commit 79e74f3da3

View File

@ -1,5 +1,5 @@
import
../constants, ../errors, ../computation, ../vm_state, ../types, .. / vm / [stack]
../constants, ../errors, ../computation, ../vm_state, ../types, .. / vm / [stack], ttmath
{.this: computation.}
{.experimental.}
@ -19,7 +19,6 @@ proc timestamp*(computation) =
# 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)
stack.push(vmState.timestamp.u256)
proc number*(computation) =
stack.push(vmState.blockNumber)