2023-09-28
*post*
================================================================================
Size of Solidity Variables
================================================================================
Here is the size of Solidity variables in bytes:
Type | Size |
---|---|
uint8 | 1 byte |
uint16 | 2 bytes |
uint32 | 4 bytes |
uint64 | 8 bytes |
uint128 | 16 bytes |
uint256 | 32 bytes |
bool | 1 byte |
bytes1 | 1 byte |
bytes2 | 2 bytes |
address | 20 bytes |
================================================================================
TAGS
*post-tags*
- [1]