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

[BUG] sozo events still referencing old ABI directory #1901

Closed
kariy opened this issue Apr 29, 2024 · 0 comments · Fixed by #1915
Closed

[BUG] sozo events still referencing old ABI directory #1901

kariy opened this issue Apr 29, 2024 · 0 comments · Fixed by #1915
Assignees
Labels
bug Something isn't working sozo

Comments

@kariy
Copy link
Member

kariy commented Apr 29, 2024

Describe the bug

Running sozo events will return a error: No such file or directory (os error 2) error.

It's because it is trying to fetch the ABI files from the old manifest structure and hasn't been updated to conform to new structure introduced in #1767.

Loc that caused the error:

if let Some(AbiFormat::Path(abi_path)) = contract.inner.abi() {
let full_abi_path = manifest_dir.join(abi_path);

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

This part also should be changed:

// Read the world and base ABI from scarb artifacts as the
// manifest does not include them (at least base is not included).
let world_abi_path = manifest_dir.join("target/dev/dojo::world::world.json");
process_abi(&mut events_map, &world_abi_path)?;
let base_abi_path = manifest_dir.join("target/dev/dojo::base::base.json");
process_abi(&mut events_map, &base_abi_path)?;

@kariy kariy added bug Something isn't working sozo labels Apr 29, 2024
@lambda-0x lambda-0x self-assigned this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sozo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants