Various contracts - remove unused function parameters to save gas #331
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
ScopeLift
Vulnerability details
Impact
Calldata costs 16 gas per non-zero byte and 4 gas per zero byte. Unused function parameters take up at least 32 bytes, which means unused parameters can cost between 128 and 512 gas
Proof of Concept
N/A
Tools Used
solc
Recommended Mitigation Steps
Remove the unused function parameters identified by the Solidity compiler. For examples like
AbstractTransferVerification
, the solidity compiler is wrong because it doesn't know you plan to override this function declaration. Instead,AbstractTransferVerification
could be an interface without a function definitionThe text was updated successfully, but these errors were encountered: