You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RyanRHall regarding your issue
As Bar is a contract , solhint cannot know slot space... If you look at the ast tree... Bar is a UserDefinedTypeName
Which by default is considered to take a whole new slot
That is why the first one fails and the second one, which is at the end, does not
I think there is a false positive with the
gas-struct-packing
rule when using contract types. Here is the MRE:MyStruct1
andMyStruct2
are both "tightly packed", but for some reason the linter doesn't like the first struct. I tested this against solhint v5.0.3The text was updated successfully, but these errors were encountered: