- stop using an array of the struct as long as you’re conversant with what you’re returning. Using struct limits when the details of struct changes and the smart contract are immutable
- when to use call data and memory
- solidity documentation
- write documentation & NATSPEC of your smart contract: if you submit a start contract for auditing without NATSPEC they’ll reject it.
- this is the best time to learn the basics
- as a developer don’t worry much about design decisions worry about logic
Return array of struct without storing data on that struct
Add mapping to the code you’ve written