Obsidian icon indicating copy to clipboard operation
Obsidian copied to clipboard

Cannot have a field in different states in different states of a contract

Open shell769324 opened this issue 5 years ago • 0 comments

Same-name-different-state 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.

shell769324 avatar May 02 '19 16:05 shell769324