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.
after #8773 Schedule is moved from a storage to outside, but Schedule just provide a Default::default() implementation, but not provide the construct function to set any attribute!
The rational for this change is explained in the issue you linked. That said, I intent to add back the ability to fully customize the the Schedule before the next version of this crate is released. But that cannot be accomplished by making the fields public for the reason explained in the linked issue. I will probably write a proc macro that creates versioned constructors that let you set all fields.
after #8773 Schedule is moved from a storage to outside, but
Schedule
just provide aDefault::default()
implementation, but not provide the construct function to set any attribute!https://github.com/paritytech/substrate/blob/master/frame/contracts/src/schedule.rs#L50-L59
it's attributes are all
(crate)
and the
Limits
and other structs are not public.For example If I wanna change the max_code_len, I cannot set from the runtime.
The text was updated successfully, but these errors were encountered: