-
Notifications
You must be signed in to change notification settings - Fork 51
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
CCIPConfig -> CCIPHome #1454
CCIPConfig -> CCIPHome #1454
Conversation
rename configCount to version remove ERC165 remove CCIPConfigTypes
LCOV of commit
|
// Validate the state transition being proposed, which is implicitly defined by the combination | ||
// of lengths of the current and new configurations. | ||
_validateConfigStateTransition(currentState, newState); | ||
|
||
uint64[] memory configCounts = new uint64[](newConfig.length); |
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.
Should we replace all occurrences of configCount
with version
?
/// @notice Determine the config state of the configuration from the length of the config. | ||
/// @param configLen The length of the configuration. | ||
/// @return The config state. | ||
function _stateFromConfigLength(uint256 configLen) internal pure returns (CCIPConfigTypes.ConfigState) { |
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.
Implicitly being done somewhere else or just inlined?
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.
Inlined into _computeNewConfigWithMeta
if (newConfigWithMeta[0].configCount != 1) { | ||
revert WrongConfigCount(newConfigWithMeta[0].configCount, 1); | ||
if (newConfigWithMeta[0].version != 1) { | ||
revert WrongConfigCount(newConfigWithMeta[0].version, 1); |
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.
revert WrongConfigCount(newConfigWithMeta[0].version, 1); | |
revert WrongVersion(newConfigWithMeta[0].version, 1); |
Quality Gate passedIssues Measures |
rename configCount to version
remove CCIPConfigTypes
rm _groupByPluginType
Steamline code
don't pass in derivable values