mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 20:16:36 +00:00
Support for addresses with or without 0x. Fixes #472
This commit is contained in:
parent
991993357c
commit
9754e7aca7
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) {
|
||||||
}
|
}
|
||||||
am := eth.AccountManager()
|
am := eth.AccountManager()
|
||||||
// Attempt to unlock the account
|
// Attempt to unlock the account
|
||||||
err := am.Unlock(ethutil.Hex2Bytes(split[0]), split[1])
|
err := am.Unlock(ethutil.FromHex(split[0]), split[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Fatalf("Unlock account failed '%v'", err)
|
utils.Fatalf("Unlock account failed '%v'", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue