Commit 6558908a authored by Mark Tyneway's avatar Mark Tyneway

Update packages/contracts-bedrock/src/L1/SystemConfig.sol

Co-authored-by: default avatarclabby <ben@clab.by>
parent a63eabf4
...@@ -184,7 +184,12 @@ contract SystemConfig is OwnableUpgradeable, Semver { ...@@ -184,7 +184,12 @@ contract SystemConfig is OwnableUpgradeable, Semver {
return addr; return addr;
} }
/// @notice /// @notice Stores an address in an arbitrary storage slot, `_slot`.
/// @param _addr The address to store
/// @param _slot The storage slot to store the address in.
/// @dev WARNING! This function must be used cautiously, as it allows for overwriting values
/// in arbitrary storage slots. Solc will add checks that the data passed as `_addr`
/// is 20 bytes or less.
function _setAddress(address _addr, bytes32 _slot) internal { function _setAddress(address _addr, bytes32 _slot) internal {
bytes32 slot = _slot; bytes32 slot = _slot;
assembly { assembly {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment