WomenofPolkadot / UI

GNU General Public License v3.0
0 stars 1 forks source link

Restructure file tree #8

Closed pieri93 closed 1 year ago

pieri93 commented 1 year ago

collection and logics are both outside of the folder packages, they need to be inside and for that the Cargo.toml from root should also be moved inside packages and members in [workspace] updated.

pieri93 commented 1 year ago

cargo contract build inside packages throws this error: ERROR: Cannot infer the root project id.

https://substrate.stackexchange.com/questions/6901/how-to-build-multiple-ink-contracts-from-a-root-folder

The issue was reported and according to it, cargo contract build must be used specifying the manifest-path like this: cargo contract build --manifest-path contracts/collection/Cargo.toml cargo contract build --manifest-path contracts/greeter/Cargo.toml