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
  • НаукаНаука

Комментарии • 19

  • @bernadineeze6610
    @bernadineeze6610 2 года назад

    This is the best enum videos I have seen so far.

  • @salem232
    @salem232 4 года назад +1

    Thank you for the video!! 😍 This is such a cool function to program the whole process ! 😎

  • @itsupport8246
    @itsupport8246 Год назад

    you explained very well !!!

  • @x-man8889
    @x-man8889 2 года назад

    Thank you. Great video

  • @rattle_
    @rattle_ 4 года назад

    Happy new year!

  • @jorisjahn6535
    @jorisjahn6535 2 года назад

    nice explanation.

  • @dinethlive
    @dinethlive 2 года назад

    wow very clear !

  • @giridharjadala2182
    @giridharjadala2182 2 года назад

    Thanks alot !!

  • @GajeshSNaik
    @GajeshSNaik 3 года назад

    Great video!

  • @matteotambussi
    @matteotambussi 2 года назад

    Great educational skill! I would love a tutorial on how to use the Remix debugger with a few examples. thnks!

  • @mohammedghilace5223
    @mohammedghilace5223 4 года назад

    Thank you 💜💜💜💜💜

  • @emarciobdirector
    @emarciobdirector 3 года назад

    you are perfect.

  • @diogosoares1309
    @diogosoares1309 2 года назад

    Great content! Why do we use require instead of an if condition?

  • @vadimchilinciuc2105
    @vadimchilinciuc2105 3 года назад

    Thanks !

  • @TINTUHD
    @TINTUHD 2 года назад

    Would it be correct to say enums are arrays of variables?

    • @smartcontractprogrammer
      @smartcontractprogrammer  2 года назад

      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

    • @TINTUHD
      @TINTUHD 2 года назад

      @@smartcontractprogrammerperfect that makes total sense. The fact that it is mapping