Closed waynehoover closed 1 year ago
@Quazia Yes, that's right. This is how solady did storage to be compatible with upgradable contracts.
/// @dev The owner slot is given by:
not(_OWNER_SLOT_NOT)
. /// It is intentionally chosen to be a high value /// to avoid collision with lower slots. https://github.com/Vectorized/solady/blob/main/src/auth/Ownable.sol#L60-L64
Role slots are also a high value: https://github.com/Vectorized/solady/blob/main/src/auth/OwnableRoles.sol#L28-L34
closes https://github.com/rabbitholegg/quest-protocol/issues/166
main
branch:solady_ownable_on_factory
branch