mirror of https://github.com/ethereum/go-ethereum
crypto: fix error check in toECDSA (#15632)
With this change, key, err := crypto.HexToECDSA("000000...") returns nil key and an error instead of a non-nil key with nil X and Y inside. Issue found by @guidovranken.pull/15659/head
parent
2499b1b139
commit
1a32bdf92c
Loading…
Reference in new issue