0
votes

I am following the tutorial Creating an ink!Project - https://substrate.dev/substrate-contracts-workshop/#/0/creating-an-ink-project, and have successfully tested the flipper contract.

When I build the contract using cargo +nightly-2020-10-06 contract build I get an error:

ERROR: Cannot infer the root project identer link description here

enter image description here

Even though I have researched this issue, cannot work out where I'm going wrong.

2

2 Answers

0
votes

You are trying to build the Substrate node-template using cargo-contract. Cargo Contract can only be used to build Smart contract like the example you mentioned (flipper).

For the node-template run cargo +nightly-2020-10-06 build --release

0
votes

Thanks, 'when I run 'cargo +nightly-2020-10-06 build --release' it compiles successfully!