From 199d6b8d10527b8c005ecc1c9f233d9977e660dc Mon Sep 17 00:00:00 2001 From: CoreyLin <514971757@qq.com> Date: Tue, 11 Dec 2018 10:41:07 +0800 Subject: [PATCH] usbwallet: check hex decode error --- accounts/usbwallet/ledger.go | 1 - 1 file changed, 1 deletion(-) diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go index 13604a4a6a..c30903b5b7 100644 --- a/accounts/usbwallet/ledger.go +++ b/accounts/usbwallet/ledger.go @@ -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 }