We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aadcb88 commit 3bebabbCopy full SHA for 3bebabb
accounts/accounts.go
@@ -195,7 +195,7 @@ func TextHash(data []byte) []byte {
195
//
196
// This gives context to the signed message and prevents signing of transactions.
197
func TextAndHash(data []byte) ([]byte, string) {
198
- msg := fmt.Sprintf("\x19Ethereum Signed Message:\n%d%s", len(data), string(data))
+ msg := fmt.Sprintf("\x19Ethereum Signed Message:\n%d%s", len(data), data)
199
hasher := sha3.NewLegacyKeccak256()
200
hasher.Write([]byte(msg))
201
return hasher.Sum(nil), msg
0 commit comments