mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Update accounts/usbwallet/ledger.go
Co-Authored-By: CoreyLin <514971757@qq.com>
This commit is contained in:
parent
b172afd1cc
commit
7039c56649
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue