Please enable JavaScript.
Coggle requires JavaScript to display documents.
Solidity Study Notes (Theories (Storage (Stack (temp) (This only can…
Solidity Study Notes
Theories
-
-
Stack (temp)
This only can easily assess the top 16 items, and compiler will fail if the request is more than that. Normally for scratch purposes (leave that for the compiler)
-
-
-
-
Local pointer variables must be dynamically defined to some other variables (global/state variables), otherwise the storage will be used as default in slot 0
-
Message call
-
Delegate Call
Everything stays the same as in the original message call, except the context/script of the contract is borrowed from another contract. This enables the library functionality in Solidity.
-
Logs
Some historical informations that can be checked by light-client out side of the Blockchain contracts
-
-
For-loops
Better use for (uint i = 0; i < a.length; i++)
. Because if you use var i = 0
then the type of i
will be uint8
which can only hold up to 255, and if the length of a
is greater than that, it will never be terminated! :warning:
String manipulations
For now, if you want to modify a string (even when you only want to know its length), you should always convert it to a bytes first
-
-
-
Examples
Simple Examples
-
Getting the 'state variable' or 'global variable', you don't need to include this.
as in other languages
-
-
-
-