You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Currently if a pallet config is implemented for the runtime, but not part of construct_runtime, then it has no name.
In this case every call to <<Runtime as frame_system::Config>::PalletInfo as PalletInfo>::name<PalletWronglyConfigured>() will return None and lots of pallet expect it to be Some (e.g. storage expect that the pallet has some name).
One way to double check that pallet is correctly configured is to have a supertrait for the config trait which is only implemented by the macro:
Currently if a pallet config is implemented for the runtime, but not part of construct_runtime, then it has no name.
In this case every call to
<<Runtime as frame_system::Config>::PalletInfo as PalletInfo>::name<PalletWronglyConfigured>()
will returnNone
and lots of pallet expect it to beSome
(e.g. storage expect that the pallet has some name).One way to double check that pallet is correctly configured is to have a supertrait for the config trait which is only implemented by the macro:
and construct_runtime would implement MyPalletKindOfSealThroughMacro for the runtime.
but I worry the error message is pretty bad.
The text was updated successfully, but these errors were encountered: