Skip to content

cargo run -- init fails due to missing artifacts.Β #28

@wjmelements

Description

@wjmelements

I am following the steps in the README. I see a failure in Step 1: Initialize.

On macos 15.5, I clone the repository, cd into it, run cargo run -- init. I get this error:

error: couldn't read `src/../artifacts/MockUSDFC.tar.gz`: No such file or directory (os error 2)
  --> src/embedded_assets.rs:28:39
   |
28 | pub static MOCKUSDFC_ARCHIVE: &[u8] = include_bytes!("../artifacts/MockUSDFC.tar.gz");
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: could not compile `foc-localnet` (lib) due to 1 previous error

rust version 1.9.0

I don't see an artifacts directory. Following the CI, it seems I have to tar -czf artifacts/MockUSDFC.tar.gz contracts/MockUSDFC. So I think the README should be updated with this step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    πŸŽ‰ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions