You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a duplicate of #242, whereas 242 is about Best Practices, this finding is saying that using ERC20 instead of IERC20 will increase the cost of the deployment.
I believe the optimizer will make the bytecode the same, but will mark this finding as valid because IERC20 would guarantee less work
Handle
pauliax
Vulnerability details
Impact
You don't need to import the implementation to interact with the contract, you can import only an interface, e.g. here:
Consider replacing ERC20 with IERC20 to reduce deployment costs.
The text was updated successfully, but these errors were encountered: