Fix code sample in utilities.adoc

pull/2924/head
Francisco Giordano 3 years ago
parent 7006e4e3e6
commit e6f26b46fc
  1. 2
      docs/modules/ROOT/pages/utilities.adoc

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

Loading…
Cancel
Save