Closed code423n4 closed 2 years ago
haku
When a contract imports and implements an interface or another contracts, it doesn't need to import the libraries that were already imported there.
Removing these imports will save gas.
ISherlock.sol imports IERC721.sol. So Sherlock.sol don't have to import IERC721.sol.
ISherlock.sol
IERC721.sol
Sherlock.sol
VS Code
remove important statement.
Handle
haku
Vulnerability details
Impact
When a contract imports and implements an interface or another contracts, it doesn't need to import the libraries that were already imported there.
Removing these imports will save gas.
Proof of Concept
ISherlock.sol
importsIERC721.sol
. SoSherlock.sol
don't have to importIERC721.sol
.Tools Used
VS Code
Recommended Mitigation Steps
remove important statement.