diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go index ef713da0cb..7aa945a104 100644 --- a/accounts/usbwallet/ledger.go +++ b/accounts/usbwallet/ledger.go @@ -170,7 +170,7 @@ func (w *ledgerDriver) SignTx(path accounts.DerivationPath, tx *types.Transactio // SignData sends a blob of data to the USB device and waits for the user to confirm // or deny the signing request. -func (w *ledgerDriver) SignData(path accounts.DerivationPath, hash []byte) (common.Address, []byte, error) { +func (w *ledgerDriver) SignData(path accounts.DerivationPath, data []byte) (common.Address, []byte, error) { return common.Address{}, nil, accounts.ErrNotSupported } diff --git a/signer/core/signed_data.go b/signer/core/signed_data.go index 926ae037ac..8b014f8ff5 100644 --- a/signer/core/signed_data.go +++ b/signer/core/signed_data.go @@ -144,7 +144,7 @@ func (api *SignerAPI) sign(addr common.MixedcaseAddress, req *SignDataRequest, l } // Only ask for the passphrase if the account is keystore based pw := "" - if strings.Compare(wallet.URL().Scheme, "keystore") == 0 { + if wallet.URL().Scheme == "keystore" { pw, err = api.lookupOrQueryPassword(account.Address, "Password for signing", fmt.Sprintf("Please enter password for signing data with account %s", account.Address.Hex()))