-
Notifications
You must be signed in to change notification settings - Fork 504
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
OZ-L10, SB-L53, SB-L54, SB-M78; Check code length on Notifications, Unsubscribe Minimum Gas Limit #318
Merged
Merged
OZ-L10, SB-L53, SB-L54, SB-M78; Check code length on Notifications, Unsubscribe Minimum Gas Limit #318
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
eca398f
check subscriber code length
saucepoint c93fc95
revert unsubscribe if not subscribed
saucepoint dd948d2
check if subscriber has code before notifying
saucepoint 845a1d4
custom reverts
saucepoint 7710b38
Merge branch 'main' into oz-L10-unsubscribe-revert
saucepoint 732bee4
SB-M78: minimum gas limit on unsubscribe
saucepoint 234596f
natspec on unsubscribe for SB M78
saucepoint a05c0c9
Update src/interfaces/INotifier.sol
saucepoint 12989e5
merge in main; fix conflicts
saucepoint e7fe727
use constructor for subscriber gas limit
saucepoint de32571
natspec for unsubscribeGasLimit
saucepoint e96d8d3
document EIP-150 instead
saucepoint df2be3b
merge in main; regenerate gas; forge fmt
saucepoint f23b137
merge in main; regenerate gas
saucepoint 0faaa59
Update src/base/Notifier.sol
saucepoint 21fa51f
forge fmt lol
saucepoint f151630
gas benchmarks for subscribe/unsubscribe
saucepoint dc3a623
gas optimize unsubscribe check
saucepoint 6caa7cc
merge in main; fix to account for CEI
saucepoint 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
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.
i see that this check makes sense, surprised it wasnt here before
doesnt one of these issues say to add it? i cant find it
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.
I think it may make more sense to check _postionConfigs().hasSubscriber? i guess see if its cheaper in the case where they do have a subscriber?
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.
yep looked like .hasSubscriber() was slightly cheaper! refactored it