Skip to content

Commit

Permalink
Fix docs function for ECDSA (OpenZeppelin#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmrodri authored Aug 10, 2021
1 parent 6618f9f commit 832ff3b
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 @@ -15,7 +15,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) {
function _verify(bytes32 data, bytes memory signature, address account) internal pure returns (bool) {
return keccak256(data)
.toEthSignedMessageHash()
.recover(signature) == account;
Expand Down

0 comments on commit 832ff3b

Please sign in to comment.