Learn Solidity (0.5) - Enum
HTML-код
- Опубликовано: 3 янв 2020
- Enum types allow you to easily control when a function in your smart contract can and cannot be called. In this video, we're gonna go over how to use enum types in Solidity.
Code: solidity-by-example.org/enum/
Remix IDE: remix.ethereum.org
Solidity: solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart / programmersmart
Website: smartcontractprogrammer.com - Наука
This is the best enum videos I have seen so far.
Thank you for the video!! 😍 This is such a cool function to program the whole process ! 😎
you explained very well !!!
Thank you. Great video
Happy new year!
nice explanation.
wow very clear !
Thanks alot !!
Great video!
Great educational skill! I would love a tutorial on how to use the Remix debugger with a few examples. thnks!
import hardhat console.log
Thank you 💜💜💜💜💜
you are perfect.
Great content! Why do we use require instead of an if condition?
shorter code, don't want to come up with a name for each custom error
Thanks !
Would it be correct to say enums are arrays of variables?
no, more like variables that map to numbers
arrays - take up N space [ENUM_1, ENUM_2, ENUM_3, ...]
variable assigned to enum is more like this
myEnum = ENUM_2 = 1
@@smartcontractprogrammerperfect that makes total sense. The fact that it is mapping