File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 24
24
//! - [`ClassifyDispatch`]: class of the dispatch.
25
25
//! - [`PaysFee`]: weather this weight should be translated to fee and deducted upon dispatch.
26
26
//!
27
- //! Substrate then bundles then output information of the two traits into [`DispatchInfo`] struct
27
+ //! Substrate then bundles the output information of the three traits into [`DispatchInfo`] struct
28
28
//! and provides it by implementing the [`GetDispatchInfo`] for all `Call` both inner and outer call
29
29
//! types.
30
30
//!
91
91
//! # fn main() {}
92
92
//! ```
93
93
//!
94
- //! ### 2. Define weights as a function of input arguments using `FunctionOf` tuple struct. This struct works
95
- //! in a similar manner as above. 3 items must be provided and each can be either a fixed value or a
96
- //! function/closure with the same parameters list as the dispatchable function itself, wrapper in a
97
- //! tuple.
94
+ //! ### 2. Define weights as a function of input arguments using `FunctionOf` tuple struct.
95
+ //!
96
+ //! This struct works in a similar manner as above. 3 items must be provided and each can be either
97
+ //! a fixed value or a function/closure with the same parameters list as the dispatchable function
98
+ //! itself, wrapper in a tuple.
98
99
//!
99
100
//! Using this only makes sense if you want to use a function for at least one of the elements. If
100
101
//! all 3 are static values, providing a raw tuple is easier.
You can’t perform that action at this time.
0 commit comments