Fix key unlocking

Currently StringToAddress was being used this however turns the string in a byteslice first. We want to use FromHex instead
This commit is contained in:
Maran 2015-05-13 15:56:25 +02:00
parent 8e24378cc1
commit c24562947c

View file

@ -368,7 +368,7 @@ func unlockAccount(ctx *cli.Context, am *accounts.Manager, account string) (pass
if len(account) == 0 {
utils.Fatalf("Invalid account address '%s'", account)
}
err = am.Unlock(common.StringToAddress(account), passphrase)
err = am.Unlock(common.HexToAddress(account), passphrase)
if err != nil {
utils.Fatalf("Unlock account failed '%v'", err)
}