I am trying to use the cargo +nightly-2022-08-15 contract build
command on a cargo contract new ___
, but am experiencing the error below.
Finished dev [unoptimized + debuginfo] target(s) in 0.15s
[2/5] Building cargo project
ERROR: No path specified, and the default `src/main.rs` was not found
The cargo +nightly-2022-08-15 contract test
was executed successfully.
Can someone please help me understand why I'm seeing this error with a possible workaround please? I guess another way to phrase my question is, where exactly from the root directory does the build command expect there to be a an "src/main.rs"?
Cargo.toml
file. All I did was move the contract folder out. Thank you very much.