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
Getting rid of trivial #[pallet::weight(T::WeightInfo::call())] by having a pallet weight_info pallet attribute that provides the WeightInfo and then tries to pull it from there FRAME: inherited call weight syntax substrate#13932.
I am not sure if this is the way forward tbh. I wish I could come up with a single rule that would rule all of the #[pallet] enhanced types, but especially because of Event and GenesisConfig, I cannot. These two can correctly have no generic, and this makes it tricky.
Some ideas that came up in recent meetings and discussions on how to improve the pallet syntax:
generate_deposit
and rather having adeposit
function on the event type itself (eg via#[derive(Deposit)]
).<T>
on the palletEvent
andError
optional Pallet Syntax: Analysis ofT
consistency #176.#[pallet::weight(T::WeightInfo::call())]
by having a palletweight_info
pallet attribute that provides theWeightInfo
and then tries to pull it from there FRAME: inherited call weight syntax substrate#13932.fn getters
: remove storage getters in FRAME substrate#13365 / [Deprecation] remove storage getters in FRAME #223generate_storage_info
Please edit to extend.
The text was updated successfully, but these errors were encountered: