Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit 4a8001c

Browse files
committed
Type hashPersonalMessage's param.
This type was already require by Buffer.concat.
1 parent 0308bbb commit 4a8001c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const isValidSignature = function(
133133
* call for a given `message`, or fed to `ecrecover` along with a signature to recover the public key
134134
* used to produce the signature.
135135
*/
136-
export const hashPersonalMessage = function(message: any): Buffer {
136+
export const hashPersonalMessage = function(message: Buffer): Buffer {
137137
const prefix = Buffer.from(
138138
`\u0019Ethereum Signed Message:\n${message.length.toString()}`,
139139
'utf-8',

0 commit comments

Comments
 (0)