I am inheriting the
ERC20 contract and overriding its
_beforeTokenTransfer virtual fuction.
In my override, I am only checking who the sender and hence only need the
from parameter and not the virtual method's
The Solidity compiler is giving me the following warning:
"Unused function parameter. Remove or comment out the variable name to silence this warning."
However, I need to include the unused
from parameters to override the virtual function (or so I think).
Is there a way to avoid this? And does it increase gas costs having unused parameters?