Skip to content

Commit

Permalink
chore(contracts): The onlyPortalRegistry modifier is not used in the …
Browse files Browse the repository at this point in the history
…codebase (#830)
  • Loading branch information
alainncls authored Nov 28, 2024
1 parent cd6e986 commit ee8c5eb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions contracts/src/SchemaRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ contract SchemaRegistry is RouterManager {
error SchemaContextAlreadyUpdated();
/// @notice Error thrown when a non-allowlisted user tries to call a forbidden method
error OnlyAllowlisted();
/// @notice Error thrown when any address which is not a portal registry tries to call a method
error OnlyPortalRegistry();
/// @notice Error thrown when a non-assigned issuer tries to call a method that can only be called by an assigned issuer
error OnlyAssignedIssuer();
/// @notice Error thrown when an invalid Issuer address is given
Expand Down Expand Up @@ -72,16 +70,6 @@ contract SchemaRegistry is RouterManager {
_;
}

/**
* @notice Checks if the caller is the portal registry.
* @param caller the caller address
*/
modifier onlyPortalRegistry(address caller) {
bool isCallerPortalRegistry = router.getPortalRegistry() == caller;
if (!isCallerPortalRegistry) revert OnlyPortalRegistry();
_;
}

/**
* @dev Changes the address for the Router
* @param _router the new Router address
Expand Down

0 comments on commit ee8c5eb

Please sign in to comment.