We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ECDSA
1 parent 253bfa6 commit 6c14de4Copy full SHA for 6c14de4
contracts/utils/cryptography/ECDSA.sol
@@ -197,7 +197,7 @@ library ECDSA {
197
/// @solidity memory-safe-assembly
198
assembly {
199
let ptr := mload(0x40)
200
- mstore(ptr, "\x19\x01")
+ mstore(ptr, hex"19_01")
201
mstore(add(ptr, 0x02), domainSeparator)
202
mstore(add(ptr, 0x22), structHash)
203
data := keccak256(ptr, 0x42)
@@ -211,6 +211,6 @@ library ECDSA {
211
* See {recover}.
212
*/
213
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
214
- return keccak256(abi.encodePacked("\x19\x00", validator, data));
+ return keccak256(abi.encodePacked(hex"19_00", validator, data));
215
}
216
0 commit comments