For namreg only show items starting without leading zeros.

pull/98/head
obscuren 11 years ago
parent e5b45d1c86
commit 7d0004f058
  1. 2
      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) {
if name[0] != 0 {
gui.win.Root().Call("addAddress", struct{ Name, Address string }{name, ethutil.Bytes2Hex(value.Bytes())})
}
})
}
}

Loading…
Cancel
Save