mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
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:
parent
8e24378cc1
commit
c24562947c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue