|
10 | 10 | //! A runtime shares a few similar setup requirements as with a pallet:
|
11 | 11 | //!
|
12 | 12 | //! * importing [`frame`], [`codec`], and [`scale_info`] crates.
|
13 |
| -//! * following the [`std`](crate::polkadot_sdk::substrate#wasm-build) pattern. |
| 13 | +//! * following the [`std` feature-gating](crate::polkadot_sdk::substrate#wasm-build) pattern. |
14 | 14 | //!
|
15 | 15 | //! But, more specifically, it also contains:
|
16 | 16 | //!
|
|
34 | 34 | #![doc = docify::embed!("./packages/guides/first-runtime/src/lib.rs", VERSION)]
|
35 | 35 | //!
|
36 | 36 | //! The version contains a number of very important fields, such as `spec_version` and `spec_name`
|
37 |
| -//! that play an important role in identifying your runtime and its version. More about runtime |
| 37 | +//! that play an important role in identifying your runtime and its version, more importantly in runtime upgrades. More about runtime |
38 | 38 | //! upgrades in [`crate::reference_docs::frame_runtime_upgrades_and_migrations`].
|
39 | 39 | //!
|
40 | 40 | //! Then, a real runtime also contains the `impl` of all individual pallets' `trait Config` for
|
|
53 | 53 | //! [`frame::prelude::frame_system::pallet::config_preludes`]) to learn more which types are exactly
|
54 | 54 | //! used.
|
55 | 55 | //!
|
56 |
| -//! Recall that in [`crate::guides::your_first_pallet`], we provided `type AccountId = u64` to |
| 56 | +//! Recall that in test runtime in [`crate::guides::your_first_pallet`], we provided `type AccountId = u64` to |
57 | 57 | //! `frame_system`, while in this case we rely on whatever is provided by
|
58 | 58 | //! [`SolochainDefaultConfig`], which is indeed a "real" 32 byte account id.
|
59 | 59 | //!
|
|
99 | 99 | //! And that more or less covers the details of how you would write a real runtime!
|
100 | 100 | //!
|
101 | 101 | //! Once you compile a crate that contains a runtime as above, simply running `cargo build` will
|
102 |
| -//! generate the wasm blobs and place them under `./target/wbuild`, as explained |
| 102 | +//! generate the wasm blobs and place them under `./target/release/wbuild`, as explained |
103 | 103 | //! [here](crate::polkadot_sdk::substrate#wasm-build).
|
104 | 104 | //!
|
105 | 105 | //! ## Genesis Configuration
|
|
0 commit comments