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

[Dojo 101 tutorial] Sozo build not accepting incompatible versions #2933

Open
muhammadaus opened this issue Jan 20, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@muhammadaus
Copy link

Describe the bug
A clear and concise description of what the bug is.
incompatible cairo-version as soon as creating a new project

To Reproduce
Steps to reproduce the behavior:
Following the Dojo 101 tutorial,
call sozo build to compile contracts after sozo init dojo-starter

Expected behavior
I was expecting the cairo and dojo version to be compatible from the start.

Additional context
Cairo version =2.8.4 found in dojo/dojo-starter/Scarb.toml is not supported by dojo (expecting 2.9.2). Please change the Cairo version in your manifest or update dojo.

repo commit hash: 2dd3ead

Side note: After a long time looking through the packages, I noticed it is a foundry like project. I just wished I got the clue sooner.

@muhammadaus muhammadaus added the bug Something isn't working label Jan 20, 2025
@glihm
Copy link
Collaborator

glihm commented Jan 21, 2025

Thank you @muhammadaus for the reported issue.

Hum, are you using 1.0.12 version of the toolchain? I've tested with sozo init using 1.0.12 and it is not expecting 2.9.2.

The commit hash you're using is actually after the bump to 2.9.2. A new dojo version is coming soon with the support of this via dojoup.

So if you're using dojo at commit hash 2dd3ead, you must also use sozo built on this commit.
But I would recommend to use dojoup/asdf to install dojo, and then work with the latest stable. Except if you do need 2.9.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants