← Code LabSolidity0/50 solved · 0%
Proxies · hard

39. Upgradeable storage layout

EIP-1967 implementation slot.

Define the EIP-1967 `_IMPLEMENTATION_SLOT = bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1);` and a `_setImpl(address newImpl)` using `sstore` in assembly.
Required in your answer: eip1967.proxy.implementationsstore(_IMPLEMENTATION_SLOTassembly