Skip to content

Commit

Permalink
whitelist storage
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Aug 2, 2024
1 parent 5861a10 commit 60d3b3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions substrate/frame/parameters/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ pub mod pallet {
}

/// Stored parameters.
///
/// ## Storage Whitelist
/// Since we account for all parameters read weight for each block,
/// don't double count it in other pallet benchmarks
#[pallet::storage]
#[pallet::whitelist_storage]
pub type Parameters<T: Config> =
StorageMap<_, Blake2_128Concat, KeyOf<T>, ValueOf<T>, OptionQuery>;

Expand Down

0 comments on commit 60d3b3a

Please sign in to comment.