Saves a storage slot for the mapping.
Depending on the circumstances and sizes of types,
can avoid a Gsset (20000 gas) per mapping combined. Reads and subsequent writes can also
be cheaper when a function requires both values and they both fit in the same storage slot.
Finally, if both fields are accessed in the same function, can save ~42 gas per access
due to not having to recalculate the key’s keccak256 hash (Gkeccak256 - 30 gas) and
that calculation’s associated stack operations.
There is 1 instance of this issue:
Following mappings should be combined into one:
save gas
Multiple address mappings can be combined into a single mapping of
an address to a struct, where appropriate.
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.