Slither

Slither

Community Analyzer

Public mappings with nested variables SLITHER-W1009

Anti-pattern
Critical

Prior to Solidity 0.5, a public mapping with nested structures returned incorrect values.

Exploit Scenario

Bob interacts with a contract that has a public mapping with nested structures. The values returned by the mapping are incorrect, breaking Bob's usage

Recommendation

Do not use public mapping with nested structures.

Learn more

public-mappings-nested on Slither's wiki.