For namreg only show items starting without leading zeros.

This commit is contained in:
obscuren 2014-07-02 11:29:59 +02:00
parent e5b45d1c86
commit 7d0004f058
1 changed files with 3 additions and 1 deletions

View File

@ -216,7 +216,9 @@ func (gui *Gui) loadAddressBook() {
nameReg := ethpub.EthereumConfig(gui.eth.StateManager()).NameReg()
if nameReg != nil {
nameReg.State().EachStorage(func(name string, value *ethutil.Value) {
gui.win.Root().Call("addAddress", struct{ Name, Address string }{name, ethutil.Bytes2Hex(value.Bytes())})
if name[0] != 0 {
gui.win.Root().Call("addAddress", struct{ Name, Address string }{name, ethutil.Bytes2Hex(value.Bytes())})
}
})
}
}