Executing build command: "rustup" "run" "nightly" "cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/briza/Desktop/substrate-node-template/target/release/wbuild/node-template-runtime/Cargo.toml" "--color=always" "--profile" "release" Using rustc version: rustc 1.67.0-nightly (c97b539e4 2022-11-30)
I followed this doc: https://docs.substrate.io/tutorials/work-with-pallets/contracts-pallet/ , and when I worked in this step "Implement the Contracts configuration trait", and I use th cargo check -p node-template-runtime --release
the terminal showed that
error[E0432]: unresolved import
pallet_contracts::DefaultContractAccessWeight
more information below:
Information that should be included in a bug report. Executing build command: "rustup" "run" "nightly" "cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/briza/Desktop/substrate-node-template/target/release/wbuild/node-template-runtime/Cargo.toml" "--color=always" "--profile" "release" Using rustc version: rustc 1.67.0-nightly (c97b539e4 2022-11-30) --- stderr Compiling node-template-runtime v4.0.0-dev (/home/briza/Desktop/substrate-node-template/runtime) error[E0432]: unresolved import
pallet_contracts::DefaultContractAccessWeight
--> /home/briza/Desktop/substrate-node-template/runtime/src/lib.rs:47:5 | 47 | use pallet_contracts::DefaultContractAccessWeight; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ noDefaultContractAccessWeight
in the root error[E0437]: typeContractAccessWeight
is not a member of traitpallet_contracts::Config
--> /home/briza/Desktop/substrate-node-template/runtime/src/lib.rs:167:3 | 167 | type ContractAccessWeight = DefaultContractAccessWeight; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of traitpallet_contracts::Config
error[E0437]: typeRelaxedMaxCodeLen
is not a member of traitpallet_contracts::Config
--> /home/briza/Desktop/substrate-node-template/runtime/src/lib.rs:169:3 | 169 | type RelaxedMaxCodeLen = ConstU32<{ 512 * 1024 }>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of traitpallet_contracts::Config
Some errors have detailed explanations: E0432, E0437. For more information about an error, tryrustc --explain E0432
.