aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-04 23:39:02 +0800
committerobscuren <geffobscura@gmail.com>2015-02-04 23:39:02 +0800
commit3f03197daebace568a61bf69c06c97e30080a749 (patch)
tree285917452362f8f86709feed07b0f620fc39464d /vm
parent4dc283c0fb5d886ce8d3638c3322af7e6f2a3b2e (diff)
downloadgo-tangerine-3f03197daebace568a61bf69c06c97e30080a749.tar.gz
go-tangerine-3f03197daebace568a61bf69c06c97e30080a749.tar.zst
go-tangerine-3f03197daebace568a61bf69c06c97e30080a749.zip
Updated tests
Diffstat (limited to 'vm')
-rw-r--r--vm/vm.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/vm/vm.go b/vm/vm.go
index 69e061e54..2b8c90428 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -510,7 +510,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
case GASPRICE:
stack.Push(context.Price)
- self.Printf(" => %v", context.Price)
+ self.Printf(" => %x", context.Price)
// 0x40 range
case BLOCKHASH:
@@ -643,6 +643,8 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
stack.Push(big.NewInt(int64(mem.Len())))
case GAS:
stack.Push(context.Gas)
+
+ self.Printf(" => %x", context.Gas)
// 0x60 range
case CREATE:
@@ -653,6 +655,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
gas = new(big.Int).Set(context.Gas)
addr []byte
)
+ self.Endl()
context.UseGas(context.Gas)
ret, suberr, ref := self.env.Create(context, nil, input, gas, price, value)
@@ -673,7 +676,6 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
stack.Push(ethutil.BigD(addr))
- self.Printf(" (*) %x", addr)
}
// Debug hook