of 32?
if the string's bytes representation is 32 bytes or less, then yes, it should only need a single SSTORE
so there's no difference between 'a' and 'aa' in terms of gas cost?
right, should be practically the same
on that sense string length of 64 would span two storage slots, the gas might be a bit higher due to convertion
right, and remember, its not string length, its the number of bytes it takes to represent it (can sometimes be more than one byte per character)
it can be multiple bytes, since I'm not exceeding ASCII range
Обсуждают сегодня