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.
1 parent 66bd84e commit ee0747dCopy full SHA for ee0747d
src/EIP7702Proxy.sol
@@ -24,9 +24,11 @@ contract EIP7702Proxy is Proxy {
24
/// @notice Function selector on the implementation that is guarded from direct calls
25
bytes4 immutable guardedInitializer;
26
27
- /// @dev Storage slot with the initialized flag
+ /// @dev Storage slot with the initialized flag, conforms to ERC-7201
28
bytes32 internal constant INITIALIZED_SLOT =
29
- bytes32(uint256(keccak256("EIP7702Proxy.initialized")) - 1);
+ keccak256(
30
+ abi.encode(uint256(keccak256("EIP7702Proxy.initialized")) - 1)
31
+ ) & ~bytes32(uint256(0xff));
32
33
/// @notice Emitted when the implementation is upgraded
34
event Upgraded(address indexed implementation);
0 commit comments