mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 04:26:37 +00:00
Correct accounts hex in XETH API
This commit is contained in:
parent
da9fe951da
commit
ac3371bcb6
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ func (self *XEth) Accounts() []string {
|
||||||
accounts, _ := self.backend.AccountManager().Accounts()
|
accounts, _ := self.backend.AccountManager().Accounts()
|
||||||
accountAddresses := make([]string, len(accounts))
|
accountAddresses := make([]string, len(accounts))
|
||||||
for i, ac := range accounts {
|
for i, ac := range accounts {
|
||||||
accountAddresses[i] = ac.Address.Str()
|
accountAddresses[i] = "0x" + ac.Address.Hex() // wtf
|
||||||
}
|
}
|
||||||
return accountAddresses
|
return accountAddresses
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue