What is the zero value of an Emum when initialized inside a struct of a mapping ?


1 Answer 1


The default value of the enum variable/field is first value of an enum which has index 0.

  • Thanks! is there a citation/documentation around evm encoding of enums?
    – fafrd
    Oct 12, 2021 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.