Skip to content

✨ Add new calldata optimal execution mode for ERC7821 - #1495

Merged
Vectorized merged 7 commits into
mainfrom
opt-7821-call-mode
Oct 28, 2025
Merged

✨ Add new calldata optimal execution mode for ERC7821#1495
Vectorized merged 7 commits into
mainfrom
opt-7821-call-mode

Conversation

@Vectorized

@Vectorized Vectorized commented Oct 6, 2025

Copy link
Copy Markdown
Owner

Description

  • Add bound checks. It's not too heavy to be checked anyways.
  • Renamed functions for more explicitness.
  • Placed to before dataArr consistently.

Integration:

  • Implement any overrides in GuardedExecutor as needed.
  • solady/accounts/ERC7821.sol -> solady/accounts/ext/ithaca/ERC7821.sol.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge fmt?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

@Vectorized

Copy link
Copy Markdown
Owner Author

Letting it marinate for a day. Gut feel says the bounds check is 90% safe, but I haven't written the tests for that yet.

legion2002 and others added 5 commits October 28, 2025 18:13
* feat: add new commonTo execution mode, for calldata optimization

* feat: add address(0) replacement to new execution mode

* chore: use memory-safe-assembly tag

* chore: natspec

* fix: clean to address, before checking if it is 0

* feat: replace commonTo mode with calldata optimal mode

* chore: replace datas with dataArr
@Vectorized
Vectorized merged commit 73f13dd into main Oct 28, 2025
13 checks passed
@Vectorized
Vectorized deleted the opt-7821-call-mode branch October 28, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants