Correct accounts hex in XETH API

This commit is contained in:
Gustav Simonsson
2015-05-12 17:19:39 +02:00
parent da9fe951da
commit ac3371bcb6
+1 -1
View File
@@ -365,7 +365,7 @@ func (self *XEth) Accounts() []string {
accounts, _ := self.backend.AccountManager().Accounts()
accountAddresses := make([]string, len(accounts))
for i, ac := range accounts {
accountAddresses[i] = ac.Address.Str()
accountAddresses[i] = "0x" + ac.Address.Hex() // wtf
}
return accountAddresses
}