Skip to content

Commit

Permalink
Merge pull request #946 from Gustav-Simonsson/fix_geth_unlock_account
Browse files Browse the repository at this point in the history
Fix hex conversion in --unlock and log when successful
  • Loading branch information
obscuren committed May 13, 2015
2 parents 28d6b30 + b5b53d8 commit 6dec904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6dec904

Please sign in to comment.