diff options
Diffstat (limited to 'accounts/keystore/presale.go')
-rw-r--r-- | accounts/keystore/presale.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/accounts/keystore/presale.go b/accounts/keystore/presale.go index 2f18a64db..ed900ad08 100644 --- a/accounts/keystore/presale.go +++ b/accounts/keystore/presale.go @@ -74,10 +74,8 @@ func decryptPreSaleKey(fileContent []byte, password string) (key *Key, err error return nil, err } ethPriv := crypto.Keccak256(plainText) - ecKey, err := crypto.ToECDSA(ethPriv) - if err != nil { - return nil, err - } + ecKey := crypto.ToECDSAUnsafe(ethPriv) + key = &Key{ Id: nil, Address: crypto.PubkeyToAddress(ecKey.PublicKey), |