Skip to content

Fix: Incorrect event emission in burnFrom()#31

Merged
mudgen merged 1 commit intoPerfect-Abstractions:mainfrom
adamgall:fix/burnfrom-event
Oct 21, 2025
Merged

Fix: Incorrect event emission in burnFrom()#31
mudgen merged 1 commit intoPerfect-Abstractions:mainfrom
adamgall:fix/burnfrom-event

Conversation

@adamgall
Copy link
Collaborator

Fixes #25

The burnFrom() function was emitting a Transfer event with msg.sender as the 'from' address instead of _account (the address whose tokens are being burned).

This caused event logs to incorrectly report who the tokens were burned from, breaking compatibility with wallets and indexers that rely on Transfer events.

The burnFrom() function was emitting a Transfer event with msg.sender as the
'from' address instead of _account (the address whose tokens are being burned).

This caused event logs to incorrectly report who the tokens were burned from,
breaking compatibility with wallets and indexers that rely on Transfer events.
@mudgen mudgen merged commit 2e5ceb6 into Perfect-Abstractions:main Oct 21, 2025
@adamgall adamgall deleted the fix/burnfrom-event branch October 21, 2025 17:55
JackieXu pushed a commit to JackieXu/Compose that referenced this pull request Nov 6, 2025
…-event

Fix: Incorrect event emission in burnFrom()
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.

ERC20Facet: burnFrom() emits Transfer event with msg.sender instead of token owner

2 participants