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

Cairo 0.9.1 support #66

Closed
ca11ab1e opened this issue Aug 4, 2022 · 3 comments · Fixed by #67
Closed

Cairo 0.9.1 support #66

ca11ab1e opened this issue Aug 4, 2022 · 3 comments · Fixed by #67

Comments

@ca11ab1e
Copy link

ca11ab1e commented Aug 4, 2022

Cairo 0.9.1 introduced support for and in if statements (if x == y and z == w). And running Amarna on a contract using such statement will fail:

Could not parse contract.cairo: Unexpected token Token('IDENTIFIER', 'and') at line 1158, column 31.
Expected one of: 
        * LBRACE
        * DOT
        * SLASH
        * LPAR
        * LSQB
        * MINUS
        * COLON
        * STAR
        * PLUS
        * _DBL_STAR
@ca11ab1e
Copy link
Author

ca11ab1e commented Aug 4, 2022

Wow you were blazing fast, thanks!

@coolhill
Copy link
Contributor

coolhill commented Aug 4, 2022

This will make it into a release on PyPi soon enough. For now you can install the latest amarna version from the repo manually:

git clone https://github.com/crytic/amarna.git && cd amarna
pip install -e .

@ca11ab1e
Copy link
Author

ca11ab1e commented Aug 4, 2022

Tested, and I confirm the fix works 👍

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.

2 participants