Skip to content

Commit

Permalink
Fix code sample in utilities.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Oct 15, 2021
1 parent 7006e4e commit e6f26b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/utilities.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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, bytes memory signature, address account) internal pure returns (bool) {
return keccak256(data)
return data
.toEthSignedMessageHash()
.recover(signature) == account;
}
Expand Down

0 comments on commit e6f26b4

Please sign in to comment.