-
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
minor improvements on contracts #12944
Conversation
@@ -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; |
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.
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]; |
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.
🙌
Quality Gate passedIssues Measures |
No description provided.