Enums and Events in SolidityÂ
Enums or Enumerations in Solidity allow developers to create a new user-defined type with a restricted set of possible values. This can make the code more readable and restrict variables to only valid values. In our example Raffle contract, there is one enum defined called RaffleState with two possible values – OPEN and CALCULATING: This …



