Browse Source

Fix docs function for ECDSA (#2819)

Julian M. Rodriguez 4 years ago
parent
commit
832ff3b9f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/modules/ROOT/pages/utilities.adoc

+ 1 - 1
docs/modules/ROOT/pages/utilities.adoc

@@ -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;