Obsidian
Obsidian copied to clipboard
Cannot have a field in different states in different states of a contract
In the snippet, one wants to declare the variable
aChoice
to be available in three states. The variable should be in Hidden
state in the first state and Revealed
state in the other two states. This code will not compile since the compiler sees aChoice
as two variables of the same name rather than one variable in two states.