Gas Optimizations #249
Labels
bug
Something isn't working
G (Gas Optimization)
grade-c
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Title: Using multiple
require
instead&&
can save gasProof of Concept:
AllowList.sol#L96-L101
Recommended Mitigation Steps:
Change to:
Title: Expression for
constant
values such as a call tokeccak256()
, should useimmutable
rather thanconstant
Proof of Concept:
L2ContractHelper.sol#L24
Recommended Mitigation Steps:
Change from
constant
toimmutable
reference: here
Title: Using
!=
inrequire
statement is more gas efficientProof of Concept:
L1ERC20Bridge.sol#L117
L1ERC20Bridge.sol#L210
Recommended Mitigation Steps:
Change
> 0
to!= 0
The text was updated successfully, but these errors were encountered: