From 3f7cd905b0880c12a65efbe4450f16c24a6bf65d Mon Sep 17 00:00:00 2001 From: Lucia Date: Thu, 27 Nov 2025 02:58:15 +1300 Subject: [PATCH] accounts/usbwallet: fix double hashing in SignTextWithPassphrase (#33138) SignTextWithPassphrase calls SignText, which already performs TextHash. --- accounts/usbwallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go index 0fd0415a9e..f1597ca1a7 100644 --- a/accounts/usbwallet/wallet.go +++ b/accounts/usbwallet/wallet.go @@ -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