Update for 08-12-21 16:00
This commit is contained in:
parent
b9ee75eb51
commit
17f770919f
@ -3,5 +3,21 @@
|
|||||||
Solidity is a language used for smart contracts on several blockchains,
|
Solidity is a language used for smart contracts on several blockchains,
|
||||||
including ethereum.
|
including ethereum.
|
||||||
|
|
||||||
|
== Structure ==
|
||||||
|
|
||||||
|
It is a good guideline to strcutre functions that interact with other contracts
|
||||||
|
in three phases
|
||||||
|
|
||||||
|
1) check conditions
|
||||||
|
2) perform actions (possibly changing the conditions)
|
||||||
|
3) Interact with the other contract
|
||||||
|
|
||||||
|
|
||||||
== Keywords ==
|
== Keywords ==
|
||||||
|
|
||||||
|
- external
|
||||||
|
- applies to a function
|
||||||
|
- allows the function to be called from outside of the contract
|
||||||
|
- payable
|
||||||
|
- applies to a function
|
||||||
|
- allows the function to recieve Ether
|
||||||
|
Loading…
Reference in New Issue
Block a user