Skip to content

Change _approved to _to for approve function and event#90

Merged
mudgen merged 1 commit into
Perfect-Abstractions:mainfrom
farismln:readability-approval-fix
Oct 22, 2025
Merged

Change _approved to _to for approve function and event#90
mudgen merged 1 commit into
Perfect-Abstractions:mainfrom
farismln:readability-approval-fix

Conversation

@farismln

Copy link
Copy Markdown
Contributor

for readability, _approved param is used for boolean only instead with address

I also change the emit of ERC721InvalidApprover(_approved) to ERC721InvalidApprover(msg.sender), because changing it into ERC721InvalidApprover(_to) seems incorrect

should resolve #67 and #68

for readability, _approved param is used for boolean only instead with
address
@mudgen

mudgen commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

Good job, thanks.

@mudgen mudgen merged commit fa6f2b6 into Perfect-Abstractions:main Oct 22, 2025
1 check passed
JackieXu pushed a commit to JackieXu/Compose that referenced this pull request Nov 6, 2025
…approval-fix

Change _approved to _to for approve function and event
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.

Style: Improve readability on ERC 721 parameter naming in approval functions

2 participants