Skip to content

Commit

Permalink
Simplify capability configuration contract interface check (#13707)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeividasK authored Jun 27, 2024
1 parent 7e5dc96 commit 96f332c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contracts/src/v0.8/keystone/CapabilitiesRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1010,10 +1010,7 @@ contract CapabilitiesRegistry is OwnerIsCreator, TypeAndVersionInterface {
/// beforeCapabilityConfigSet
if (
capability.configurationContract.code.length == 0 ||
!IERC165(capability.configurationContract).supportsInterface(
ICapabilityConfiguration.getCapabilityConfiguration.selector ^
ICapabilityConfiguration.beforeCapabilityConfigSet.selector
)
!IERC165(capability.configurationContract).supportsInterface(type(ICapabilityConfiguration).interfaceId)
) revert InvalidCapabilityConfigurationContractInterface(capability.configurationContract);
}
s_capabilities[hashedCapabilityId] = capability;
Expand Down

0 comments on commit 96f332c

Please sign in to comment.