shramee / starklings-cairo1

An interactive tutorial to get you up and running with Cairo v1 and Starknet
MIT License
450 stars 394 forks source link

Enums 2 Exercise issue #177

Closed gianalarcon closed 10 months ago

gianalarcon commented 11 months ago

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 16b4790aa0f68fedfbaa921e76032650ced486c1

swarajbachu commented 10 months ago

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 commented 10 months ago

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

gianalarcon commented 10 months ago

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

swarajbachu commented 10 months ago

I did the same

shramee commented 10 months ago

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

gianalarcon commented 10 months ago

Yes. It is working with #181