Combining multiple address/ID mappings into a single mapping of an address/ID to a struct can potentially save gas in some scenarios.
With the single mapping approach, you can save gas when performing operations such as initializing or updating the IDs for an address, as well as querying the IDs for a given address. Instead of performing multiple storage operations on separate mappings, you can achieve the same result with a single storage operation on the struct.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.