We had changed the code in pallet template and was trying to add it in substrate node-template runtime. Link to [github code]2
After answer updated following new error:
Error -
Compiling node-template-runtime v4.0.0-dev (/data/Network-marketing/runtime)
error: failed to run custom build command for node-template-runtime v4.0.0-dev (/data/Network-marketing/runtime)
Caused by:
process didn't exit successfully: /data/Network-marketing/target/release/build/node-template-runtime-55554732df6f82a1/build-script-build
(exit status: 1)
--- stdout
Information that should be included in a bug report.
Executing build command: "rustup" "run" "nightly" "cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/data/Network-marketing/target/release/wbuild/node-template-runtime/Cargo.toml" "--color=always" "--profile" "release"
Using rustc version: rustc 1.65.0-nightly (02654a084 2022-08-30)
--- stderr
Compiling node-template-runtime v4.0.0-dev (/data/Network-marketing/runtime)
error[E0119]: conflicting implementations of trait core::convert::TryFrom<OriginCaller>
for type frame_system::RawOrigin<[type error]>
--> /data/Network-marketing/runtime/src/lib.rs:284:1
|
284 | construct_runtime!(
| ^
| ||
| ||
285 | || pub enum Runtime
286 | || where
287 | || Block = Block,
... ||
302 | || }
303 | || );
| ||_- in this macro invocation
... |
|
= note: conflicting implementation in crate core
:
- impl<T, U> TryFrom for T
where U: Into;
= note: this error originates in the macro frame_support::construct_runtime
which comes from the expansion of the macro construct_runtime
(in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try rustc --explain E0119
.
error: could not compile node-template-runtime
due to previous errorenter code here
rustup update
?