Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enums 2 Exercise issue #177

Closed
gianalarcon opened this issue Dec 5, 2023 · 6 comments · Fixed by #181
Closed

Enums 2 Exercise issue #177

gianalarcon opened this issue Dec 5, 2023 · 6 comments · Fixed by #181

Comments

@gianalarcon
Copy link

Trying to run the exercise enums2.cairo with the following solution...

enum Message { // TODO: define the different variants used below
    Quit,
    Echo: felt252,
    Move: (felt252, felt252),
    ChangeColor: (felt252, felt252, felt252),
}

...fails with the following error message...

#47: Expected variable data for statement not found.

According to my own research it is a bug introduced since commit 16b4790

@swarajbachu
Copy link

I am having the same issue, and It did after the commit mentioned, coz I wasnt having it before, when I tried to sync it back, I am facing the issue @shramee

@swarajbachu
Copy link

and I guess most probably it is from
use debug::PrintTrait; this library

@gianalarcon
Copy link
Author

Yes, In my case I commented all the helper functions related to print

@swarajbachu
Copy link

I did the same

@shramee
Copy link
Owner

shramee commented Dec 20, 2023

Hi @gianalarcon,
Just fixed this in #181. Are you able to help review this?

@gianalarcon
Copy link
Author

Yes. It is working with #181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants