Skip to content

Commit 32bc4fc

Browse files
lucia-wfjl
authored andcommitted
accounts/usbwallet: fix double hashing in SignTextWithPassphrase (ethereum#33138)
SignTextWithPassphrase calls SignText, which already performs TextHash.
1 parent bcfcdbb commit 32bc4fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accounts/usbwallet/wallet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ func (w *wallet) SignTx(account accounts.Account, tx *types.Transaction, chainID
632632
// data is not supported for Ledger wallets, so this method will always return
633633
// an error.
634634
func (w *wallet) SignTextWithPassphrase(account accounts.Account, passphrase string, text []byte) ([]byte, error) {
635-
return w.SignText(account, accounts.TextHash(text))
635+
return w.SignText(account, text)
636636
}
637637

638638
// SignTxWithPassphrase implements accounts.Wallet, attempting to sign the given

0 commit comments

Comments
 (0)