-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add getCapabilities to the CapabilityRegistry #13031
Conversation
…stry-get-capabilities # Conflicts: # core/gethwrappers/keystone/generated/keystone_capability_registry/keystone_capability_registry.go # core/gethwrappers/keystone/generation/generated-wrapper-dependency-versions-do-not-edit.txt
@@ -0,0 +1,29 @@ | |||
// SPDX-License-Identifier: MIT |
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.
nit: file name inconsistent with the name of the test and the other file
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.
👍 will fix it in a follow-up to avoid merge conflict.
@@ -10,4 +10,8 @@ contract CapabilityConfigurationContract is ICapabilityConfiguration, ERC165 { | |||
function getCapabilityConfiguration(uint256 donId) external view returns (bytes memory configuration) { | |||
return s_donConfiguration[donId]; | |||
} | |||
|
|||
function supportsInterface(bytes4 interfaceId) public pure override returns (bool) { |
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.
I don't see this used anywhere, why is it needed?
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.
This is called by consumers/callers of this contract. My guess is the capability registry will call this prior to adding a particular configuration contract address to check that it supports the interface.
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.
It is used here: https://github.com/smartcontractkit/chainlink/pull/13031/files#diff-d94c1796b3544ef8780af7e16b5361c8fb9e4d63f492faeda6a3362a8363f51bR180-R182 (previous implementation and test weren't working as expected).
Quality Gate passedIssues Measures |
No description provided.