aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-21 17:55:50 +0800
committerobscuren <geffobscura@gmail.com>2014-07-21 17:55:50 +0800
commit15960a5c04c154a07d8813fcc9a6fa465d8d4500 (patch)
treeee317a556b54913473045e78cb88bebdec9e01fc
parentf702e27485981562ed7b88ecd3f8485af4c61b62 (diff)
downloaddexon-15960a5c04c154a07d8813fcc9a6fa465d8d4500.tar.gz
dexon-15960a5c04c154a07d8813fcc9a6fa465d8d4500.tar.zst
dexon-15960a5c04c154a07d8813fcc9a6fa465d8d4500.zip
changed iterator
-rw-r--r--ethereal/debugger.go2
-rw-r--r--ethereal/gui.go3
2 files changed, 3 insertions, 2 deletions
diff --git a/ethereal/debugger.go b/ethereal/debugger.go
index 7742b1627..17087f8ce 100644
--- a/ethereal/debugger.go
+++ b/ethereal/debugger.go
@@ -289,7 +289,7 @@ func (d *Debugger) halting(pc int, op ethchain.OpCode, mem *ethchain.Memory, sta
d.win.Root().Call("setStack", val.String())
}
- stateObject.State().EachStorage(func(key string, node *ethutil.Value) {
+ stateObject.EachStorage(func(key string, node *ethutil.Value) {
d.win.Root().Call("setStorage", storeVal{fmt.Sprintf("% x", key), fmt.Sprintf("% x", node.Str())})
})
diff --git a/ethereal/gui.go b/ethereal/gui.go
index d816a774f..d76db2ade 100644
--- a/ethereal/gui.go
+++ b/ethereal/gui.go
@@ -220,8 +220,9 @@ func (gui *Gui) loadAddressBook() {
nameReg := ethpub.EthereumConfig(gui.eth.StateManager()).NameReg()
if nameReg != nil {
- nameReg.State().EachStorage(func(name string, value *ethutil.Value) {
+ nameReg.EachStorage(func(name string, value *ethutil.Value) {
if name[0] != 0 {
+ value.Decode()
gui.win.Root().Call("addAddress", struct{ Name, Address string }{name, ethutil.Bytes2Hex(value.Bytes())})
}
})