You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Various contracts have mappings which map to a boolean value. In Solidity, this is inefficient, because writing to such a mapping incurs an additional storage read. It is more gas-efficient to map to a type which occupies the entire size of the storage slot, e.g. a uint256.
The text was updated successfully, but these errors were encountered:
Various contracts have mappings which map to a boolean value. In Solidity, this is inefficient, because writing to such a mapping incurs an additional storage read. It is more gas-efficient to map to a type which occupies the entire size of the storage slot, e.g. a uint256.
The text was updated successfully, but these errors were encountered: