neotheprogramist / dojo

Dojo is a provable game engine and toolchain for building onchain games and autonomous worlds with Cairo
https://dojoengine.org/
Apache License 2.0
0 stars 1 forks source link

[BUG] Sozo built from source fails to compile a contract #22

Open matzayonc opened 9 months ago

matzayonc commented 9 months ago

sozo built from source fails to compile a contract. When tried to compile with the command below

$ cargo run --bin sozo -- build --manifest-path crates/benches/contracts/Scarb.toml

getting multiple trait errors, similar to the ones below

error: Identifier not found.
 --> /home/mateo/code/dojo/crates/benches/contracts/src/systems/actions.cairo[actions]:8:38
                    use dojo::world::IDojoResourceProvider;
                                     ^*******************^

while sozo build --manifest-path crates/benches/contracts/Scarb.toml works just fine

Run on a benchmark contract in crates/benches as well as a fresh project created with sozo init