Hey guys, can someone explain me or tell me what I can google about how the conversion of bytes32 to uint works?
uint test = uint(any bytes32 value);
What is happening there? And is the size of the uint always the same? I don't know what to google for 😅
Feb 21, 2021, 1:32 PM
A uint is always the same size, no matter its contents. Smaller uints may get packed together to reduce the gas footprint, but that's a special case.
But as for your other question, I'm not quite sure what exactly happens there
But as for your other question, I'm not quite sure what exactly happens there
Feb 21, 2021, 3:21 PM