From c24562947c9d85ca847bd4530823fc9929925346 Mon Sep 17 00:00:00 2001 From: Maran Date: Wed, 13 May 2015 15:56:25 +0200 Subject: [PATCH] Fix key unlocking Currently StringToAddress was being used this however turns the string in a byteslice first. We want to use FromHex instead --- cmd/geth/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 1582953f7b..69e6d34b52 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -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) }