What is the zero value of an Emum when initialized inside a struct of a mapping ?
-
Hi there. Does this previous answer help? ethereum.stackexchange.com/questions/4086/…– Richard HorrocksJul 22, 2017 at 10:50
1 Answer
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?– fafrdOct 12, 2021 at 18:33