-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Add ERC2771Forwarder as an enhanced successor to MinimalForwarder
#4346
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
Merged
frangio
merged 36 commits into
OpenZeppelin:master
from
ernestognw:lib-643-production-ready-minimal-forwarder-2
Jun 29, 2023
Merged
Changes from 9 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
4c1cd22
Minimal Forwarder
ernestognw 2432d0d
Add changeset
ernestognw 6a87cec
Fix ERC2771 tests
ernestognw 16b9ea8
Add batching and better explain gas forwarding check
ernestognw 7c5d038
Lint
ernestognw 5662e35
Applied suggestions
ernestognw d1c75c8
Fix test
ernestognw dff9998
Complete tests
ernestognw 8da57ef
Improve testing
ernestognw 5978b7e
Rename MinimalForwarder to ERC2771Forwarder
ernestognw 3d5fe68
Avoid revert on nonce mismatch
ernestognw c781b6b
Use _validate in _execute
ernestognw f5987eb
Use timestamp instead of block number
ernestognw e59d707
Merge branch 'master' into lib-643-production-ready-minimal-forwarder-2
ernestognw 87e77b1
Apply suggestions
ernestognw bdd061d
Pack signature into request
ernestognw 376f3b2
Fix ERC2771Context tests
ernestognw 1ba8173
Merge branch 'master' into lib-643-production-ready-minimal-forwarder-2
ernestognw b94a100
Improve comments in _checkForwardedGas
ernestognw 85acfdf
Remove returndata
ernestognw 74d5961
Fix ETH left
ernestognw c62d927
Changed note
ernestognw daafff8
Fix codespell
ernestognw f3d5b44
Fix ETH left in the contract
ernestognw cb8690e
Fix nonces
ernestognw 68ce4eb
Avoid reentrancy
ernestognw 99a26c4
Apply suggestion
ernestognw be93a80
Apply suggestion
ernestognw 5c039ea
Improve tests
ernestognw b7b985e
Remove flaky test
ernestognw 8f84f4e
Hardcode slither version to 0.9.3
ernestognw 8a03cad
Revert on unsuccessful execute
ernestognw 95bcb57
Implement suggestions
ernestognw 8b7e961
tweak proof wording
frangio f72c2d5
change ETH -> value
frangio 62d2342
adjust comment after recent change
frangio 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'openzeppelin-solidity': major | ||
| --- | ||
|
|
||
| `MinimalForwarder`: Added `deadline` for expiring transactions and added `msg.value` mismatch check. |
This file contains hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.