aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/debugger.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/ui/debugger.go')
-rw-r--r--ethereal/ui/debugger.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethereal/ui/debugger.go b/ethereal/ui/debugger.go
index 919407b34..9d60c7587 100644
--- a/ethereal/ui/debugger.go
+++ b/ethereal/ui/debugger.go
@@ -78,7 +78,6 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
var err error
script := ethutil.StringToByteFunc(scriptStr, func(s string) (ret []byte) {
ret, err = ethutil.Compile(s)
- fmt.Printf("%x\n", ret)
return
})
@@ -110,14 +109,16 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
block := self.lib.eth.BlockChain().CurrentBlock
vm := ethchain.NewVm(state, self.lib.eth.StateManager(), ethchain.RuntimeVars{
+ Block: block,
Origin: account.Address(),
- BlockNumber: block.BlockInfo().Number,
+ BlockNumber: block.Number,
PrevHash: block.PrevHash,
Coinbase: block.Coinbase,
Time: block.Time,
Diff: block.Difficulty,
Value: ethutil.Big(valueStr),
})
+ vm.Verbose = true
self.Db.done = false
self.Logf("callsize %d", len(script))