accounts/usbwallet: fix double hashing in SignTextWithPassphrase #33138 (#1852)

This commit is contained in:
wit liu 2025-12-09 13:57:13 +08:00 committed by GitHub
parent 5c879a5e05
commit 62272ed4e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -632,7 +632,7 @@ func (w *wallet) SignTx(account accounts.Account, tx *types.Transaction, chainID
// data is not supported for Ledger wallets, so this method will always return
// an error.
func (w *wallet) SignTextWithPassphrase(account accounts.Account, passphrase string, text []byte) ([]byte, error) {
return w.SignText(account, accounts.TextHash(text))
return w.SignText(account, text)
}
// SignTxWithPassphrase implements accounts.Wallet, attempting to sign the given