Hooked up the Block Explorer to the Debugger so we can instantly debug made transactions

This commit is contained in:
Maran
2014-05-28 15:48:17 +02:00
parent aaeb268522
commit 1eda1d25b0
3 changed files with 59 additions and 8 deletions

View File

@ -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 {