-
Notifications
You must be signed in to change notification settings - Fork 9
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 audit fixes #41
Merged
Merged
Add audit fixes #41
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
003123c
Add audit fixes
SoraSuegami 801fc68
FIx selector check when validator == msg.sender
SoraSuegami 4f0d782
Ignore validator address in EmailRecoveryModule (#43)
JohnGuilding 2670be9
Add test_AllowValidatorRecovery_When_SafeAddOwnerSelector
SoraSuegami eb668a5
Fix unit tests for selectors
SoraSuegami b6acd37
forge fmt & typo fix
JohnGuilding 4b387da
Add deInitRecoveryModuleWithAddress.t.sol.
wshino 9760ad4
Remove test_Constructor_RevertWhen_SafeNotAllowedSelector, it's dupli…
wshino 630baae
Remove test_AllowValidatorRecovery_RevertWhen_SafeNotAllowedSelector,…
wshino 3d39050
Feat/fix test allow validator recovery (#44)
wshino cef236a
Add cancelExpiredRecovery function
SoraSuegami 055ed35
Set executeBefore on first guardian approval
JohnGuilding c6eb136
Simplify Safe selector tests & Add update natspec
JohnGuilding 374a6f0
fix bug from not checking if module is installed
JohnGuilding ee2c007
Clean up SafeEmailRecoveryModule
JohnGuilding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For completeness even though risk is low, can you add unit tests for this new function?
You can just replicate
EmailRecoveryManager_deInitRecoveryModule_Test
, but for the new internal function with the account argument. You could even add tests in the same file.Would need to update the harness to expose the internal function
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.
Thank you, I've just added deInitRecoveryModuleWithAddress.t.sol.