Document fallback handler modules behavior#6422
Document fallback handler modules behavior#6422luiz-lvj wants to merge 4 commits intoOpenZeppelin:masterfrom
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis PR adds validation to the ERC7579 account abstraction module system to prevent installation of fallback modules with invalid (zero) selectors. A new custom error Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment Tip CodeRabbit can use Trivy to scan for security misconfigurations and secrets in Infrastructure as Code files.Add a .trivyignore file to your project to customize which findings Trivy reports. |
|
I think the comment is enough for this one and restricting the zero selector may be an overkill. The rationale is that the zero selector is as invalid as any other colisioning selector, as we cannot predict them. Wdyt? @ernestognw |
I agree the comment is enough. There are many functions identified for the |
|
Not only would I not restrict the selector 0x00000000, but I would also consider overriding the receive() external payable virtual override {
if (_fallbackHandler(0x00000000) != address(0)) _fallback();
} |
…nto erc7579-fallback-handlers
|
@Amxx I don't think we should override the |
…nto erc7579-fallback-handlers
Fixes L-05
This PR adds the
ERC7579InvalidFallbackSelectorfor the0x00000000selector and documents the behavior for the cases where the seletor is already present in the contract.PR Checklist
npx changeset add)