Skip to main content
๐Ÿ› Bug HuntSO Solidity Mediumโšก+20 XP

Missing Event Emit

This transfer function updates state but breaks off-chain tracking.

๐Ÿ› Find the bug
1function transfer(address to, uint amt) external {
2 balances[msg.sender] -= amt;
3 balances[to] += amt;
4}
๐Ÿ› The bug is on line 3

๐Ÿ”ง Select the correct fix: