polkadot-developers / substrate-docs

Substrate Developer Hub. Substrate is powered by best in class cryptographic research and comes with peer to peer networking, consensus mechanisms, and much more.
https://docs.substrate.io
BSD Zero Clause License
131 stars 274 forks source link

Fix the outdate syntax of pallet-randomness-collective-flip crate (which prevent import pallet to runtime) #2140

Open t41n4 opened 8 months ago

t41n4 commented 8 months ago

Is there an existing issue?

Experiencing problems? Have you tried our Stack Exchange first?

Content request

Issue Report: Error encountered while following Collectibles Workshop tutorial

Environment

Steps to Reproduce

  1. Follow the Collectibles Workshop tutorial up to Chapter 6.
  2. In Chapter 7, add the pallet-randomness-collective-flip crate to the project's Cargo.toml file.
  3. Compile the project.

Expected Behavior

The project should compile successfully.

Actual Behavior

The following errors are encountered:

Error 1:

image

Error 2:

image

Attempted Solutions

image

Additional Information

References

Request

Please investigate this issue and update the tutorial to reflect the latest changes to the Substrate framework.

Additional Notes

Conclusion

The pallet-randomness-collective-flip crate is causing errors when following the Collectibles Workshop tutorial. The tutorial is outdated and needs to be updated to reflect the latest changes to the Substrate framework.

Are you willing to help with this request?

Yes!