OZ-like `EnumerableBytes4Set`
urataps opened this issue · comments
Alexe Spataru commented
We need to implement a library for EnumerableBytes4Set
similar to OZ EnumerableBytes32Set
where we can store 8 selectors in one storage slot.
Alexe Spataru commented
Trade-off of two possible implementations:
- storing
bytes4[]
consumes more gas on adding - storing 8 selectors in one
bytes32
requires storing length separately.