Commit 435eaf1a by github-actions

Merge upstream master into patched/master

...@@ -24,4 +24,4 @@ jobs: ...@@ -24,4 +24,4 @@ jobs:
- run: bash scripts/upgradeable/merge-upstream.sh - run: bash scripts/upgradeable/merge-upstream.sh
env: env:
REF: ${{ github.event.client_payload.ref || github.ref}} REF: ${{ github.event.client_payload.ref || github.ref}}
- run: git push - run: git push origin
...@@ -15,7 +15,7 @@ The data signer can be recovered with xref:api:cryptography.adoc#ECDSA-recover-b ...@@ -15,7 +15,7 @@ The data signer can be recovered with xref:api:cryptography.adoc#ECDSA-recover-b
---- ----
using ECDSA for bytes32; 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) return keccak256(data)
.toEthSignedMessageHash() .toEthSignedMessageHash()
.recover(signature) == account; .recover(signature) == account;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment