Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 572 Bytes

Enums Cont..md

File metadata and controls

23 lines (19 loc) · 572 Bytes

Enums are one way to create a user-defined type in Solidity.

They require at least one member and its default value when declared is the first member.

They cannot have more than 256 members.


Slide Screenshot

053.jpg


Slide Deck

  • User-defined Type
  • Members: At least 1 -> Max 256
  • Default: First Member
  • Usage: E.g.: State Names/Transitions

References


Tags

Enums