aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 1582953f7..b4d7feed1 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -368,10 +368,11 @@ 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)
}
+ fmt.Printf("Account '%s' unlocked.\n", account)
return
}