FR: ignore storage slots matching a pattern
aspiers opened this issue · 4 comments
aspiers commented
Here's an example of a contract (0x8A4d...09DD
on Polygon) which due to its upgradeability (via OpenZeppelin) has various gaps deliberately inserted in the storage layout:
These __gap
structures will never contain data, so it would be great if there was an option to exclude them from the generated diagram.
naddison36 commented
That's a good idea. I'll see what I can do. Maybe have an option which is a comma-separated list of variable names to ignore expanding out.
aspiers commented
Yes that sounds perfect, thanks a lot!
naddison36 commented
I've added support for this in release v2.5.9
Here's the result using your example
sol2uml storage 0xa90dAF1975BA13c26F63976e0Fd73A21F966EE0D --hideExpand __gap --network polygon -v
aspiers commented
Awesome, thanks so much!