Skip to content

Commit

Permalink
change constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipp Makarov authored and Filipp Makarov committed Nov 11, 2024
1 parent e7308ff commit ff010cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ERC7739Validator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract contract ERC7739Validator {
/// @dev `keccak256("PersonalSign(bytes prefixed)")`.
bytes32 internal constant _PERSONAL_SIGN_TYPEHASH = 0x983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de;
bytes32 internal constant _DOMAIN_TYPEHASH = 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;
bytes4 internal constant SUPPORTS_ERC7739 = 0x77390001;
bytes4 internal constant SUPPORTS_ERC7739_V1 = 0x77390001;

/*//////////////////////////////////////////////////////////////////////////
INTERNAL
Expand All @@ -45,7 +45,7 @@ abstract contract ERC7739Validator {
if (signature.length == uint256(0)) {
// Forces the compiler to optimize for smaller bytecode size.
if (uint256(hash) == ~signature.length / 0xffff * 0x7739)
return SUPPORTS_ERC7739;
return SUPPORTS_ERC7739_V1;
}
}

Expand Down

0 comments on commit ff010cd

Please sign in to comment.