Fix keccak256 typo (#2525)
This commit is contained in:
committed by
GitHub
parent
ee6348a7a0
commit
24660c3e48
@ -16,7 +16,7 @@ The data signer can be recovered with xref:api:cryptography.adoc#ECDSA-recover-b
|
||||
using ECDSA for bytes32;
|
||||
|
||||
function _verify(bytes32 data, address account) pure returns (bool) {
|
||||
return keccack256(data)
|
||||
return keccak256(data)
|
||||
.toEthSignedMessageHash()
|
||||
.recover(signature) == account;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user