You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded the code and tried to build the project using cargo +nightly contract build after installing cargo-contract. But got the below error:
error: failed to parse manifest at /private/var/folders/nw/vl8k59fs3gng74cg8c2_51280000gn/T/cargo-contract_o8a6PG/Cargo.toml``
Caused by:
the target phat_hello is a binary and can't have any crate-types set (currentlERROR: command ["/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/bin/cargo", "build", "--color=always", "--target=wasm32-unknown-unknown", "-Zbuild-std=core,alloc", "--no-default-features", "--release", "--target-dir=/Users/.../Downloads/phat-hello-master/target/ink", "--features", "ink/ink-debug"] exited with code 101
I'd suggest using cargo-contract v2. Cargo contract v3 introduced breaking changes to how artifacts are stored and you'll have to move them manually if you wish to use it. We will be making the changes to fix this, but for the time-being, we recommend to use v2.
I downloaded the code and tried to build the project using
cargo +nightly contract build
after installing cargo-contract. But got the below error:error: failed to parse manifest at
/private/var/folders/nw/vl8k59fs3gng74cg8c2_51280000gn/T/cargo-contract_o8a6PG/Cargo.toml``Thanks
The text was updated successfully, but these errors were encountered: