diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-21 17:55:50 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-21 17:55:50 +0800 |
commit | 15960a5c04c154a07d8813fcc9a6fa465d8d4500 (patch) | |
tree | ee317a556b54913473045e78cb88bebdec9e01fc /ethereal/gui.go | |
parent | f702e27485981562ed7b88ecd3f8485af4c61b62 (diff) | |
download | dexon-15960a5c04c154a07d8813fcc9a6fa465d8d4500.tar.gz dexon-15960a5c04c154a07d8813fcc9a6fa465d8d4500.tar.zst dexon-15960a5c04c154a07d8813fcc9a6fa465d8d4500.zip |
changed iterator
Diffstat (limited to 'ethereal/gui.go')
-rw-r--r-- | ethereal/gui.go | 3 |
1 files changed, 2 insertions, 1 deletions
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())}) } }) |