Skip to content

Commit

Permalink
add some comment to SENTINEL_OWNERS (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
dodger213 committed Aug 1, 2024
1 parent 6decf6c commit d87d8f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/base/ModuleManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ abstract contract BaseModuleGuard is IModuleGuard {
* @author Richard Meissner - @rmeissner
*/
abstract contract ModuleManager is SelfAuthorized, Executor, IModuleManager {
// SENTINEL_MODULES is used to traverse `modules`, so that:
// 1. `modules[SENTINEL_MODULES]` contains the first module
// 2. `modules[last_module]` points back to SENTINEL_MODULES
address internal constant SENTINEL_MODULES = address(0x1);

// keccak256("module_manager.module_guard.address")
Expand Down
3 changes: 3 additions & 0 deletions contracts/base/OwnerManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import {IOwnerManager} from "../interfaces/IOwnerManager.sol";
* @author Richard Meissner - @rmeissner
*/
abstract contract OwnerManager is SelfAuthorized, IOwnerManager {
// SENTINEL_OWNERS is used to traverse `owners`, so that:
// 1. `owners[SENTINEL_OWNERS]` contains the first owner
// 2. `owners[last_owner]` points back to SENTINEL_OWNERS
address internal constant SENTINEL_OWNERS = address(0x1);

mapping(address => address) internal owners;
Expand Down

0 comments on commit d87d8f2

Please sign in to comment.