Overview
Test to see what data structures are not supported in Starlight for mapping keys and mapping values. Update the documentation to reflect this, and ensure there are user friendly error messages.
Tasks
- Test mappings with bool keys are supported, make sure this is documented/ has readable error message
- Test mappings to bools and addresses, , make sure this is documented/ has readable error message
- Add error for mappings to arrays and nested mappings
- Document mapping keys can only be of type address, bool , uint256 (if true based on above tests)
- Document mapping values can only be of types struct, address, bool, uint256 (if true based on above tests)
Definition of done
When is this task complete?
Every possible type for mapping keys/ mapping values for secret variables should be tested, documented, and an error message added if necessary.