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

Audit Changes for v1.4.1-2 #812

Merged
merged 11 commits into from
Aug 23, 2024
Merged

Audit Changes for v1.4.1-2 #812

merged 11 commits into from
Aug 23, 2024

Conversation

remedcu
Copy link
Member

@remedcu remedcu commented Aug 22, 2024

This PR makes the changes based on Certora's audit report for the Safe Migration Contracts. Changes are only made to the SafeToL2Migration contract. Most of the changes are related to reducing gas consumption, typos and comments.

@remedcu remedcu self-assigned this Aug 22, 2024
@coveralls
Copy link

coveralls commented Aug 22, 2024

Pull Request Test Coverage Report for Build 10510138697

Details

  • 20 of 20 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 94.196%

Totals Coverage Status
Change from base Build 10081005354: 0.1%
Covered Lines: 386
Relevant Lines: 401

💛 - Coveralls

@remedcu
Copy link
Member Author

remedcu commented Aug 22, 2024

Open Question:

To maintain consistency, should we also rename this variable:

address public immutable _SELF;

From _SELF to SELF?

Update: Made that change, please let me know if it should be reverted.

* @notice Returns a list of Safe owners.
* @return Array of Safe owners.
*/
function getOwners() internal view returns (address[] memory) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we need to add unit tests for this? From a FV perspective we could in theory prove that the two always return the same. May be overkill for the audit PR, but might be nice to include on main.

Copy link
Member Author

Choose a reason for hiding this comment

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

We could add that to the PR created for main. Won't prefer adding it to this one as you mentioned.

Copy link
Collaborator

@nlordell nlordell left a comment

Choose a reason for hiding this comment

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

LGTM, some small nits and an open question about how best to test the getOwners method.

@akshay-ap
Copy link
Member

Typo still needs to be fixed: https://github.com/safe-global/safe-smart-account/pull/812/files#diff-925588b812f729cc164d14a48e571ce813e2f0ae6f5c5420fc0382c767287fd0R135

@remedcu remedcu requested a review from nlordell August 22, 2024 13:56
@remedcu remedcu merged commit 75018fb into release/v1.4.1-2 Aug 23, 2024
13 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2024
@mmv08 mmv08 deleted the v1.4.1-2-audit branch August 23, 2024 12:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants