From 1eda1d25b0d27fe57287698fb883c9153ddda292 Mon Sep 17 00:00:00 2001 From: Maran Date: Wed, 28 May 2014 15:48:17 +0200 Subject: Hooked up the Block Explorer to the Debugger so we can instantly debug made transactions --- ethereal/ui/debugger.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ethereal/ui/debugger.go') diff --git a/ethereal/ui/debugger.go b/ethereal/ui/debugger.go index 5b1fb50a2..342e3a7d0 100644 --- a/ethereal/ui/debugger.go +++ b/ethereal/ui/debugger.go @@ -65,6 +65,12 @@ func (self *DebuggerWindow) SetCode(code string) { func (self *DebuggerWindow) SetData(data string) { self.win.Set("dataText", data) } +func (self *DebuggerWindow) SetAsm(data string) { + dis := ethchain.Disassemble(ethutil.FromHex(data)) + for _, str := range dis { + self.win.Root().Call("setAsm", str) + } +} func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, dataStr string) { if !self.Db.done { -- cgit