From 17f770919f7353c170a24f3097355f0da66784bf Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Wed, 8 Dec 2021 16:00:01 -0500 Subject: [PATCH] Update for 08-12-21 16:00 --- lang/Solidity.wiki | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lang/Solidity.wiki b/lang/Solidity.wiki index f4becf8..1d7db67 100644 --- a/lang/Solidity.wiki +++ b/lang/Solidity.wiki @@ -3,5 +3,21 @@ Solidity is a language used for smart contracts on several blockchains, 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 == + +- 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