usbwallet: check hex decode error

This commit is contained in:
CoreyLin 2018-12-11 10:41:07 +08:00
parent 7039c56649
commit 199d6b8d10

View file

@ -257,7 +257,6 @@ func (w *ledgerDriver) ledgerDerive(derivationPath []uint32) (common.Address, er
// Decode the hex sting into an Ethereum address and return
var address common.Address
_, err = hex.Decode(address[:], hexstr)
if _, err = hex.Decode(address[:], hexstr); err != nil {
return common.Address{}, err
}