mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 12:51:05 +00:00
Update missing dev mode docs (#14694)
* add docs about call indices and hashers * fix mention of call indices * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <ci@gitlab.parity.io>
This commit is contained in:
@@ -238,8 +238,8 @@ pub fn construct_runtime(input: TokenStream) -> TokenStream {
|
|||||||
/// * Weights no longer need to be specified on every `#[pallet::call]` declaration. By default, dev
|
/// * Weights no longer need to be specified on every `#[pallet::call]` declaration. By default, dev
|
||||||
/// mode pallets will assume a weight of zero (`0`) if a weight is not specified. This is
|
/// mode pallets will assume a weight of zero (`0`) if a weight is not specified. This is
|
||||||
/// equivalent to specifying `#[weight(0)]` on all calls that do not specify a weight.
|
/// equivalent to specifying `#[weight(0)]` on all calls that do not specify a weight.
|
||||||
/// * Call index no longer needs to be specified on every `#[pallet::call]` declaration. By default,
|
/// * Call indices no longer need to be specified on every `#[pallet::call]` declaration. By
|
||||||
/// dev mode pallets will assume a call index based on the order of the call.
|
/// default, dev mode pallets will assume a call index based on the order of the call.
|
||||||
/// * All storages are marked as unbounded, meaning you do not need to implement `MaxEncodedLen` on
|
/// * All storages are marked as unbounded, meaning you do not need to implement `MaxEncodedLen` on
|
||||||
/// storage types. This is equivalent to specifying `#[pallet::unbounded]` on all storage type
|
/// storage types. This is equivalent to specifying `#[pallet::unbounded]` on all storage type
|
||||||
/// definitions.
|
/// definitions.
|
||||||
|
|||||||
@@ -1660,9 +1660,14 @@ pub mod pallet_prelude {
|
|||||||
/// default, dev mode pallets will assume a weight of zero (`0`) if a weight is not
|
/// default, dev mode pallets will assume a weight of zero (`0`) if a weight is not
|
||||||
/// specified. This is equivalent to specifying `#[weight(0)]` on all calls that do not
|
/// specified. This is equivalent to specifying `#[weight(0)]` on all calls that do not
|
||||||
/// specify a weight.
|
/// specify a weight.
|
||||||
|
/// * Call indices no longer need to be specified on every `#[pallet::call]` declaration. By
|
||||||
|
/// default, dev mode pallets will assume a call index based on the order of the call.
|
||||||
/// * All storages are marked as unbounded, meaning you do not need to implement
|
/// * All storages are marked as unbounded, meaning you do not need to implement
|
||||||
/// `MaxEncodedLen` on storage types. This is equivalent to specifying `#[pallet::unbounded]`
|
/// `MaxEncodedLen` on storage types. This is equivalent to specifying `#[pallet::unbounded]`
|
||||||
/// on all storage type definitions.
|
/// on all storage type definitions.
|
||||||
|
/// * Storage hashers no longer need to be specified and can be replaced by `_`. In dev mode,
|
||||||
|
/// these will be replaced by `Blake2_128Concat`. In case of explicit key-binding, `Hasher`
|
||||||
|
/// can simply be ignored when in `dev_mode`.
|
||||||
///
|
///
|
||||||
/// Note that the `dev_mode` argument can only be supplied to the `#[pallet]` or
|
/// Note that the `dev_mode` argument can only be supplied to the `#[pallet]` or
|
||||||
/// `#[frame_support::pallet]` attribute macro that encloses your pallet module. This argument
|
/// `#[frame_support::pallet]` attribute macro that encloses your pallet module. This argument
|
||||||
|
|||||||
Reference in New Issue
Block a user