[G-01] x = x + y is cheaper than x += y;
s.diamondCutStorage.currentProposalId += 1;
fix:
s.diamondCutStorage.currentProposalId = s.diamondCutStorage.currentProposalId + 1;
instances:
[G-02] USE NAMED RETURNS FOR LOCAL VARIABLES WHERE IT IS POSSIBLE
function decimals() public view override returns (uint8) {
// If method is not available, behave like a token that does not implement this method - revert on call.
if (availableGetters.ignoreDecimals) revert();
return decimals_;
}
FIX
function decimals() public view override returns (uint8 decimals_) {
// If method is not available, behave like a token that does not implement this method - revert on call.
if (availableGetters.ignoreDecimals) revert();
}
instances: