mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-14 06:15:57 +00:00
Remove double line and use ttmath for generating u256
This commit is contained in:
parent
c66afe18dd
commit
79e74f3da3
@ -1,5 +1,5 @@
|
|||||||
import
|
import
|
||||||
../constants, ../errors, ../computation, ../vm_state, ../types, .. / vm / [stack]
|
../constants, ../errors, ../computation, ../vm_state, ../types, .. / vm / [stack], ttmath
|
||||||
|
|
||||||
{.this: computation.}
|
{.this: computation.}
|
||||||
{.experimental.}
|
{.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)
|
# 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.
|
# This may have implications for different platforms.
|
||||||
stack.push(vmState.timestamp.uint64.u256)
|
stack.push(vmState.timestamp.uint64.u256)
|
||||||
stack.push(vmState.timestamp.u256)
|
|
||||||
|
|
||||||
proc number*(computation) =
|
proc number*(computation) =
|
||||||
stack.push(vmState.blockNumber)
|
stack.push(vmState.blockNumber)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user