From 9754e7aca79a3d24ac17589f548072a4dca68fbb Mon Sep 17 00:00:00 2001 From: Maran Date: Sat, 14 Mar 2015 11:40:13 +0100 Subject: [PATCH] Support for addresses with or without 0x. Fixes #472 --- cmd/ethereum/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go index 8b01457e6..4cb2d9979 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -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) }