Who is in charge of some projects? Can you support it? I follow the tutorial and can't understand it at all. The subject node template I saw has been updated to monthly-2021-07 release by Jimmy Chu. I can't compile in step 3 of part I: basic setup
As I copy over the bare-bones of the pallet into kitties/src/lib.rs, it can't be build or check directly, the compiler said SubstrateKitties
does not have defined, and the full error is as followed:
Compiling kitties-runtime v3.0.0 (/Users/xiongzhend/Documents/RustProj/my-substratekitties/runtime) warning: unused import:
frame_support::pallet_prelude::*--> pallets/kitties/src/lib.rs:11:6 | 11 | use frame_support::pallet_prelude::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note:
#[warn(unused_imports)]` on by default
warning: unused import: frame_system::pallet_prelude::*
--> pallets/kitties/src/lib.rs:12:6
|
12 | use frame_system::pallet_prelude::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: 2 warnings emitted
Checking frame-benchmarking-cli v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-07#83808aa8)
error: failed to run custom build command for kitties-runtime v3.0.0 (/Users/xiongzhend/Documents/RustProj/my-substratekitties/runtime)
Caused by:
process didn't exit successfully: /Users/xiongzhend/Documents/RustProj/my-substratekitties/target/debug/build/kitties-runtime-3959c83639dd6822/build-script-build
(exit status: 1)
--- stdout
Information that should be included in a bug report.
Executing build command: "/Users/xiongzhend/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/Users/xiongzhend/Documents/RustProj/my-substratekitties/target/debug/wbuild/kitties-runtime/Cargo.toml" "--color=always" "--release"
Using rustc version: rustc 1.55.0-nightly (b1f8e27b7 2021-07-15)
--- stderr
warning: unused import: frame_support::pallet_prelude::*
--> /Users/xiongzhend/Documents/RustProj/my-substratekitties/pallets/kitties/src/lib.rs:11:6
|
11 | use frame_support::pallet_prelude::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)]
on by default
warning: unused import: frame_system::pallet_prelude::*
--> /Users/xiongzhend/Documents/RustProj/my-substratekitties/pallets/kitties/src/lib.rs:12:6
|
12 | use frame_system::pallet_prelude::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: 2 warnings emitted
Compiling kitties-runtime v3.0.0 (/Users/xiongzhend/Documents/RustProj/my-substratekitties/runtime)
error: SubstrateKitties
does not have #[pallet::genesis_config] defined, perhaps you should remove Config
from construct_runtime?
--> /Users/xiongzhend/Documents/RustProj/my-substratekitties/runtime/src/lib.rs:276:1
|
276 | / construct_runtime!(
277 | | pub enum Runtime where
278 | | Block = Block,
279 | | NodeBlock = opaque::Block,
... |
292 | | }
293 | | );
| |__^
|
= note: this error originates in the macro pallet_kitties::__substrate_genesis_config_check::is_genesis_config_defined
(in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile kitties-runtime
due to previous error`