Skip to content

Commit

Permalink
Support for addresses with or without 0x. Fixes #472
Browse files Browse the repository at this point in the history
  • Loading branch information
Maran committed Mar 14, 2015
1 parent 9919933 commit 9754e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ethereum/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) {
}
am := eth.AccountManager()
// 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 {
utils.Fatalf("Unlock account failed '%v'", err)
}
Expand Down

0 comments on commit 9754e7a

Please sign in to comment.