paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.78k stars 643 forks source link

Update the build instructions of contracts-rococo #3161

Open muddlebee opened 7 months ago

muddlebee commented 7 months ago

Is there an existing issue?

Experiencing problems? Have you tried our Stack Exchange first?

Description of bug

Previously the contracts template was here https://github.com/paritytech/canvas but moved to below

https://github.com/paritytech/polkadot-sdk/tree/master/cumulus/parachains/runtimes/contracts/contracts-rococo

Build instructions are outdated ![Uploading image.png…]()

Steps to reproduce

No response

bkchr commented 7 months ago

CC @athei

athei commented 7 months ago

Which build instructions are you referring to? I can't find a mentioning of canvas in the README. I also greped the whole repository for the word "canvas" and can't find it.

muddlebee commented 7 months ago

Which build instructions are you referring to? I can't find a mentioning of canvas in the README. I also greped the whole repository for the word "canvas" and can't find it.

hey @athei I am referring to this section https://github.com/paritytech/polkadot-sdk/tree/master/cumulus/parachains/runtimes/contracts/contracts-rococo#build--launch-a-node currently its throwing error with the latest code.

it is little confusing on how to use canvas here 😅

muddlebee commented 7 months ago

let me know if I can help here. I am looking forward to contributing.

athei commented 7 months ago

Okay you are saying the build instructions do not work, correct? Can you please elaborate more on the error. Is there some error message?

I just don't get why you are using the word "canvas"? I am confused because it should not be mentioned in the docs somewhere.

let me know if I can help here. I am looking forward to contributing.

If you figured out what goes wrong opening a PR would be appreciated. Thank you.

juangirini commented 1 week ago

@muddlebee I guess you mean this error?

$ ./target/release/polkadot-parachain --chain contracts-rococo     
Error: 
   0: Invalid input: Error opening spec file `contracts-rococo`: No such file or directory (os error 2)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.