From 6b3c3d047be4ce77519dd29354c1e80d7768ca1b Mon Sep 17 00:00:00 2001 From: Mingyuan Yu <18106816+Yumingyuan@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:52:16 +0800 Subject: [PATCH] Update readme.md change "internal" to "public" to make the function could call by user --- 37_Signature/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/37_Signature/readme.md b/37_Signature/readme.md index 9c887f3e1..338eea333 100644 --- a/37_Signature/readme.md +++ b/37_Signature/readme.md @@ -76,7 +76,7 @@ tags: * 以及`EIP191`:https://eips.ethereum.org/EIPS/eip-191` * 添加"\x19Ethereum Signed Message:\n32"字段,防止签名的是可执行交易。 */ - function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { + function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) { // 哈希的长度为32 return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); }