Skip to content

Remove unused ERC20InvalidApprover error#48

Merged
mudgen merged 1 commit intoPerfect-Abstractions:mainfrom
adamgall:chore/remove-invalid-approver-error
Oct 21, 2025
Merged

Remove unused ERC20InvalidApprover error#48
mudgen merged 1 commit intoPerfect-Abstractions:mainfrom
adamgall:chore/remove-invalid-approver-error

Conversation

@adamgall
Copy link
Copy Markdown
Collaborator

Fixes #47

The ERC20InvalidApprover error was declared but never used anywhere in the codebase. Analysis shows it's not needed because:

  • approve() uses msg.sender as approver, which can never be address(0)
  • permit() signature verification would fail for address(0) anyway

This error appears to have been included for ERC-6093 compliance but serves no practical purpose in the current implementation.

The ERC20InvalidApprover error was declared but never used anywhere in
the codebase. Analysis shows it's not needed because:

- approve() uses msg.sender as approver, which can never be address(0)
- permit() signature verification would fail for address(0) anyway

This error appears to have been included for ERC-6093 compliance but
serves no practical purpose in the current implementation.
@mudgen mudgen merged commit 22d0e46 into Perfect-Abstractions:main Oct 21, 2025
@adamgall adamgall deleted the chore/remove-invalid-approver-error branch October 21, 2025 17:55
JackieXu pushed a commit to JackieXu/Compose that referenced this pull request Nov 6, 2025
…-invalid-approver-error

Remove unused ERC20InvalidApprover error
maxnorm added a commit that referenced this pull request Mar 25, 2026
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.

Remove unused error ERC20InvalidApprover

2 participants