[FRAME] pallet using tasks should automatically bound frame_system::Config<RuntimeTask: From<Task>>
.
#6462
Labels
I5-enhancement
An additional feature request.
pallet using tasks (
#[pallet::tasks_experimental]
) needs to boundFrom<Task>
to system runtime tasks. The macro should automatically bound it in the pallet config supertrait.In rust we can bound multiple time the same supertrait AFAIR, so we can just have the macro add:
frame_system::Config<RuntimeTask: From<Task>>
to the palletConfig
trait.This will not work for the system pallet. I think we can have a new attribute to notify the macro that a pallet is system pallet, and the macro would generate differently in this case. This new attribute can be:
#[pallet::is_frame_system]
.The same process can be used to get rid of the associated type
RuntimeEvent
in pallets.cc @gupnik
The text was updated successfully, but these errors were encountered: