Hello guys.
How to calculate how much bytes a uint8 or uint16 or any other data type going to take in the evm slot?

Sep 24, 2020, 5:18 AM
In general, you can cheat and check for example here: https://docs.oracle.com/cd/E19253-01/817-6223/chp-typeopexpr-2/index.html
But if you get them packed they will take less space but that depends on the implementaion
Sep 24, 2020, 6:13 AM

© 2024 Draquery.com All rights reserved.