Storage Optimization #38
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
0x1f8b
Vulnerability details
Impact
Cheaper storage.
Proof of Concept
The struct AuctionData file Auction.sol is optimizable. It looks like this:
But
active
andfinalized
, the unique boolean values, should be together, otherwise they will spend two slots instead of one.Tools Used
Manual review
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: