Gas optimization: Struct layout #327
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
Handle
gzeon
Vulnerability details
Impact
AuctionData struct can be repacked to save some storage slot. e.g.
active
andfinalized
together to save 1 slotstartingTime
andendingTime
to save 2 slot when packed withactive
andfinalized
https://github.com/code-423n4/2021-11-malt/blob/c3a204a2c0f7c653c6c2dda9f4563fd1dc1cecf3/src/contracts/Auction.sol#L26
The text was updated successfully, but these errors were encountered: