New answers tagged

0

This is solved as Mikko explained in the comment.


0

Solidity, in a deliberate way, does not support memory pointers “a la C”, neither it has any pointer arithmetic in place. This means that incrementing or decrementing a pointer variable is not a meaningful operation. You can do something similar in assembly, but you must manage the whole thing at the lowest level possible and without thinking to be able to ...


0

No, you will not consume less memory in the EVM. Per the ERC20 spec, decimals must be a uint8. Because of this, the actual decimals variable will always be the same cost. Additionally, you will not have any cost savings by storing variables of token values with a smaller decimals. In fact, it may even cost more to store a smaller value (such as uint128). ...


Top 50 recent answers are included