From 62272ed4e6714dd1846079c6663f087bd5d899f4 Mon Sep 17 00:00:00 2001 From: wit liu <765765346@qq.com> Date: Tue, 9 Dec 2025 13:57:13 +0800 Subject: [PATCH] accounts/usbwallet: fix double hashing in SignTextWithPassphrase #33138 (#1852) --- 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 7ce681f10b..cf10a9eaad 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