Various contracts - stricter function mutability for gas savings #330
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
ScopeLift
Vulnerability details
Impact
There are four functions that can have stricter function mutability declarations. Using a stricter declaration can help the compiler save gas when it knows whether reads and writes will occur in a function
Proof of Concept
N/A
Tools Used
solc
Recommended Mitigation Steps
Implement the changes suggested 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: