Redundant Import #62
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
defsec
Vulnerability details
Impact
Hardhat console is an unnecessary import in all contracts since it is used solely for development. It can therefore be removed.
Proof of Concept
"https://github.com/code-423n4/2021-11-malt/blob/d3f6a57ba6694b47389b16d9d0a36a956c5e6a94/src/contracts/RewardSystem/RewardThrottle.sol#L14"
"https://github.com/code-423n4/2021-11-malt/blob/d3f6a57ba6694b47389b16d9d0a36a956c5e6a94/src/contracts/RewardSystem/RewardDistributor.sol#L12"
Tools Used
None
Recommended Mitigation Steps
Consider to delete 'import "hardhat/console.sol"' for the gas optimization.
The text was updated successfully, but these errors were encountered: