MainToken.__init__()
emits Transfer
events when the amount minted for msg.sender
is zero (and it is always the case)
#67
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pants
Vulnerability details
The function
MainToken.__init__()
(the constructor) emitsTransfer
events when the amount minted formsg.sender
is zero. This is always the case, as the value of the constantINITIAL_SUPPLY
is zero.Impact
There is no reason to emit these
Transfer
events because nothing has changed in the system. Such events are only going to confuse users.Tool Used
Manual code review.
Recommended Mitigation Steps
Emit these events only when the amount minted for
msg.sender
is not zero.The text was updated successfully, but these errors were encountered: