-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ERC165Checker in CapabilitiesRegistry #14231
Conversation
function supportsInterface(bytes4 interfaceId) public pure override returns (bool) { | ||
return interfaceId == this.getCapabilityConfiguration.selector ^ this.beforeCapabilityConfigSet.selector; | ||
function supportsInterface(bytes4 interfaceId) public pure returns (bool) { | ||
return interfaceId == type(ICapabilityConfiguration).interfaceId || interfaceId == type(IERC165).interfaceId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this change please? Why don't we need to use selectors any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Combined selectors are produced by type(ICapabilityConfiguration).interfaceId
. The main addition here is checking for type(IERC165).interfaceId
, which was missing before.
…cker # Conflicts: # contracts/gas-snapshots/keystone.gas-snapshot
7529371
to
f4b1309
Compare
I see you updated files related to
|
|
No description provided.