Преглед изворни кода

Support for addresses with or without 0x. Fixes #472

Maran пре 10 година
родитељ
комит
9754e7aca7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      cmd/ethereum/main.go

+ 1 - 1
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)
 		}