Skip to content

Commit

Permalink
missing check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramarti committed Apr 15, 2024
1 parent fd3dd95 commit 59b52d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/lib/Errors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ library Errors {
error IPAccount__InvalidCalldata();
error IPAccount__InvalidAccessController();

////////////////////////////////////////////////////////////////////////////
// CoreMetadataModule //
////////////////////////////////////////////////////////////////////////////
error CoreMetadataModule__ZeroAccessManager();

////////////////////////////////////////////////////////////////////////////
// Module //
////////////////////////////////////////////////////////////////////////////
Expand Down
3 changes: 3 additions & 0 deletions contracts/modules/metadata/CoreMetadataModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ contract CoreMetadataModule is

/// @notice Initializes the CoreMetadataModule contract.
function initialize(address accessManager) public initializer {
if (accessManager == address(0)) {
revert Errors.CoreMetadataModule__ZeroAccessManager();
}
__AccessManaged_init(accessManager);
__UUPSUpgradeable_init();
}
Expand Down

0 comments on commit 59b52d3

Please sign in to comment.