Skip to content

Commit ac3371b

Browse files
author
Gustav Simonsson
committed
Correct accounts hex in XETH API
1 parent da9fe95 commit ac3371b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xeth/xeth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ func (self *XEth) Accounts() []string {
365365
accounts, _ := self.backend.AccountManager().Accounts()
366366
accountAddresses := make([]string, len(accounts))
367367
for i, ac := range accounts {
368-
accountAddresses[i] = ac.Address.Str()
368+
accountAddresses[i] = "0x" + ac.Address.Hex() // wtf
369369
}
370370
return accountAddresses
371371
}

0 commit comments

Comments
 (0)