diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go index 9b7ca181fc..13604a4a6a 100644 --- a/accounts/usbwallet/ledger.go +++ b/accounts/usbwallet/ledger.go @@ -258,7 +258,7 @@ 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 != nil { + if _, err = hex.Decode(address[:], hexstr); err != nil { return common.Address{}, err } return address, nil