rusty-crewmates / substrate-tutorials Goto Github PK
View Code? Open in Web Editor NEWA collection of exercices to teach yourself Substrate
License: Apache License 2.0
A collection of exercices to teach yourself Substrate
License: Apache License 2.0
Commits to cherry-pick (might have conflict to resolve, we should only keep documentation update, and test updates):
Hey ๐ It seems that some links in Exercises 0 and 7 are pointing to some 404 pages.
Exercise 0:
Exercise 7:
This code in exercise-0 needs to be changed as per FRAME v3.
File (code referenced): https://github.com/rusty-crewmates/substrate-tutorials/blob/main/exercises/ex00-testing/flipper/src/lib.rs#L18-20
Hi in the exercice 03 nft, there is no check in mint if tokens are added to account
It appears maybe due to the substrate docs update, some of the links in https://github.com/rusty-crewmates/substrate-tutorials/tree/main/exercises/ex00-writing-tests are not working properly. I'll like to go through the effort of replacing the links to the proper location.
Sending build context to Docker daemon 2.121GB
Step 1/3 : FROM tdelabro/rusty-crewmates-substrate-tutorials:latest
---> 23262fd19c33
Step 2/3 : ADD ./exercises/ex00-writing-tests/ /home/substrate-tutorials/./exercises/ex00-writing-tests/
---> Using cache
---> 12d2b8623cde
Step 3/3 : CMD ["cargo", "test", "--manifest-path", "/home/substrate-tutorials/Cargo.toml"]
---> Using cache
---> de7d38fc8bcb
Successfully built de7d38fc8bcb
Successfully tagged substrate-test-exercise:latest
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
docker: Error response from daemon: failed to create endpoint sharp_meitner on network bridge: failed to add the host (vethbfda3cd) <=> sandbox (veth9f069ae) pair interfaces: operation not supported.
I've tried different altering the run_one_excersice_tests.sh
script with different --platform
switches but no avail...I guess this script was only intended for people with M1 Macs? 0.0
Hey @gdnathan and others: substrate-developer-hub/substrate-docs#1132
all older links now are likely useless redirects, please scan & update ๐ happy to help if you can't find something you need, please open an issue on the docs themselves for a missing/broken link
Originally posted by @nukemandan in #12 (comment)
Here is a list of ideas for new exercises.
To make these tutorials more visible, it would be neat to have them included in polkadot.study.
The storage Account, is confusing as it is an amount of type u128 that is stored and binded to an AccountId.
Maybe add instructions, at least a little, not giving solution but lead of what to do.
machine: aarch64-darwin
Just forked and cloned the repo and tried to the run the tests:
$ cargo t
...
Compiling k256 v0.10.4
Compiling num-rational v0.4.1
Compiling num-complex v0.4.2
Compiling approx v0.5.1
Compiling rawpointer v0.2.1
Compiling frame-support-procedural-tools v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea)
Compiling matrixmultiply v0.3.2
Compiling nalgebra-macros v0.1.0
Compiling primitive-types v0.11.1
error[E0603]: module `group` is private
--> /Users/afm/.cargo/git/checkouts/substrate-7e08433d4c370a21/616d33e/frame/support/procedural/tools/src/syn_ext.rs:50:53
|
50 | let syn::group::$name { token, content } = syn::group::$parse(input)?;
| ^^^^^ private module
|
note: the module `group` is defined here
--> /Users/afm/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.107/src/lib.rs:308:1
|
308 | mod group;
| ^^^^^^^^^
error[E0603]: module `group` is private
--> /Users/afm/.cargo/git/checkouts/substrate-7e08433d4c370a21/616d33e/frame/support/procedural/tools/src/syn_ext.rs:50:14
|
50 | let syn::group::$name { token, content } = syn::group::$parse(input)?;
| ^^^^^ private module
|
note: the module `group` is defined here
--> /Users/afm/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.107/src/lib.rs:308:1
|
308 | mod group;
| ^^^^^^^^^
For more information about this error, try `rustc --explain E0603`.
error: could not compile `frame-support-procedural-tools` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
--
I've seen this error before when building older versions of Substrate.
I can fix this by upgrading version to polkadot-v0.9.28
in the exercises.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.