Update accounts/usbwallet/ledger.go

Co-Authored-By: CoreyLin <514971757@qq.com>
This commit is contained in:
Martin Holst Swende 2018-12-11 10:36:04 +08:00 committed by GitHub
parent b172afd1cc
commit 7039c56649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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