Skip to content
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

minor improvements on contracts #12944

Merged
merged 2 commits into from
Apr 25, 2024
Merged

minor improvements on contracts #12944

merged 2 commits into from
Apr 25, 2024

Conversation

shileiwill
Copy link
Contributor

No description provided.

@@ -1115,13 +1116,12 @@ abstract contract AutomationRegistryBase2_3 is ConfirmedOwner {
* @notice updates the signers and transmitters lists
*/
function _updateTransmitters(address[] memory signers, address[] memory transmitters) internal {
uint256 transmittersListLength = s_transmittersList.length;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick - could we make this a uint96 so that we don't have to cast it every time in the loop below? I think it will save a touch on gas

@@ -198,6 +198,7 @@ contract AutomationRegistryLogicA2_3 is AutomationRegistryBase2_3, Chainable {
delete s_upkeepOffchainConfig[id];
// nullify existing proposed admin change if an upkeep is being migrated
delete s_proposedAdmin[id];
delete s_upkeepAdmin[id];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

RyanRHall
RyanRHall previously approved these changes Apr 25, 2024
@cl-sonarqube-production
Copy link

@shileiwill shileiwill added this pull request to the merge queue Apr 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 25, 2024
@shileiwill shileiwill added this pull request to the merge queue Apr 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 25, 2024
@shileiwill shileiwill added this pull request to the merge queue Apr 25, 2024
Merged via the queue into develop with commit 167782c Apr 25, 2024
110 checks passed
@shileiwill shileiwill deleted the advisory branch April 25, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants