Expression and Control Structures
Supported keywords
There is: if
, else
, while
, do
, for
, break
, continue
, return
, try
/catch
with the usual semantics known from C or JavaScript.
Function Calls
We can call function
of 1 contract
from another contract
. We have an example below with 2 contracts Caller
and Callee
.
Create new contract with keyword new
new
We can use keyword new
to create a new contract. AdvancedStorage.sol
example will explain this in more details.
Last updated