diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-13 07:11:17 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-13 07:11:17 +0800 |
commit | b5b53d8b32758fba1ad675c0bd51aa4f83aed268 (patch) | |
tree | bc237b0b533154543f733901143f7b077b1282d8 /cmd/geth | |
parent | 28d6b30c0f4b11aceae93e73d57c34aab112ca21 (diff) | |
download | go-tangerine-b5b53d8b32758fba1ad675c0bd51aa4f83aed268.tar.gz go-tangerine-b5b53d8b32758fba1ad675c0bd51aa4f83aed268.tar.zst go-tangerine-b5b53d8b32758fba1ad675c0bd51aa4f83aed268.zip |
Fix hex conversion in --unlock and log when successful
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/main.go | 3 |
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 } |