mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-22 12:39:05 +00:00
For namreg only show items starting without leading zeros.
This commit is contained in:
parent
e5b45d1c86
commit
7d0004f058
@ -216,7 +216,9 @@ func (gui *Gui) loadAddressBook() {
|
|||||||
nameReg := ethpub.EthereumConfig(gui.eth.StateManager()).NameReg()
|
nameReg := ethpub.EthereumConfig(gui.eth.StateManager()).NameReg()
|
||||||
if nameReg != nil {
|
if nameReg != nil {
|
||||||
nameReg.State().EachStorage(func(name string, value *ethutil.Value) {
|
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…
x
Reference in New Issue
Block a user