aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/instructions.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-08-24 08:52:53 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-08-25 10:46:11 +0800
commit7324176f702a77fc331bf16a968d2eb4bccce021 (patch)
treea9fef3b9ee46fc382dde23cdd90209cc4298dd59 /core/vm/instructions.go
parentd51d0022cee91d6588186455afbe6e54fae2cbf7 (diff)
downloaddexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.gz
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.bz2
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.lz
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.xz
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.zst
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.zip
Add tests for uncle timestamps and refactor timestamp type
Diffstat (limited to 'core/vm/instructions.go')
-rw-r--r--core/vm/instructions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/instructions.go b/core/vm/instructions.go
index 2de35a443..aa0117cc8 100644
--- a/core/vm/instructions.go
+++ b/core/vm/instructions.go
@@ -341,7 +341,7 @@ func opCoinbase(instr instruction, env Environment, context *Context, memory *Me
}
func opTimestamp(instr instruction, env Environment, context *Context, memory *Memory, stack *stack) {
- stack.push(U256(new(big.Int).SetUint64(env.Time())))
+ stack.push(U256(new(big.Int).Set(env.Time())))
}
func opNumber(instr instruction, env Environment, context *Context, memory *Memory, stack *stack) {