My pallet is using the following frame pallets: Democracy, Utility & Collective. The error I get is:
cycle used when elaborating drops for `<impl at /home/kazu/Polkadot/fair-squares/runtime/src/lib.rs:634:1: 652:10>::clone`
--> /home/kazu/Polkadot/fair-squares/runtime/src/lib.rs:634:1
635 | || pub struct Runtime
... ||
651 | || Utility: pallet_utility,
634 | // construct_runtime!(
652 | || Council: pallet_collective::<Instance1>,
| ||_________^
I have two instances of collective, but I'm using only Instance1 in this pallet. The trait Config is as follows:
type RuntimeCall: Parameter
+ Dispatchable<RuntimeOrigin = <Self as frame_system::Config>::RuntimeOrigin, PostInfo = PostDispatchInfo>
+ GetDispatchInfo
+ From<frame_system::Call<Self>>
+ UnfilteredDispatchable<RuntimeOrigin = <Self as frame_system::Config>::RuntimeOrigin>
+ IsSubType<Call<Self>>
+ IsType<<Self as frame_system::Config>::RuntimeCall>;
I really can't figure out the problem with RuntimeCall definition. Any idea on how I can solve this error...PLEASE?
Kazunobu
An error occurred submitting the edit.
RuntimeCall
Self:: RuntimeOrigin
instead of<Self as frame_system::Config>::RuntimeOrigin
, I think it should work