For namreg only show items starting without leading zeros.

pull/98/head
obscuren 11 years ago
parent e5b45d1c86
commit 7d0004f058
  1. 4
      ethereal/gui.go

@ -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())})
}
})
}
}

Loading…
Cancel
Save