Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
t41n4 opened this issue Mar 3, 2024 · 0 comments
Labels
new content 💡✍️ New Devhub content required.

Comments

@t41n4
Copy link

t41n4 commented Mar 3, 2024

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Content request

Issue Report: Error encountered while following Collectibles Workshop tutorial

Environment

  • Substrate version: 4.0.0-dev
  • Rust version: 1.64.0
  • OS: Linux

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

  • Added the pallet-randomness-collective-flip crate to the project's Cargo.toml file.
  • Implemented the pallet-randomness-collective-flip pallet from source.
  • Replaced all instances of T::BlockNumber with BlockNumberFor<T>.
  • Added impl pallet_randomness_collective_flip::Config for Runtime {} to the project's runtime/src/lib.rs file.

image

Additional Information

  • The issue appears to be related to the pallet-randomness-collective-flip crate.
  • The tutorial is outdated and does not reflect the latest changes to the Substrate framework.

References

Request

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

Additional Notes

  • The issue has been reported on GitHub: [đã xoá URL không hợp lệ]
  • The tutorial is being updated to address this issue.

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!

@t41n4 t41n4 added the new content 💡✍️ New Devhub content required. label Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new content 💡✍️ New Devhub content required.
Projects
None yet
Development

No branches or pull requests

1 participant