Tips Benchmarking to be Runtime Agnostic (#10368)

* use config traits instead of constants

* bounties too

* do bounties too

* update docs
This commit is contained in:
ferrell-code
2021-11-29 13:38:07 -05:00
committed by GitHub
parent d91125389a
commit 9418860126
4 changed files with 22 additions and 20 deletions
+2
View File
@@ -195,6 +195,8 @@ pub mod pallet {
type Event: From<Event<Self>> + IsType<<Self as frame_system::Config>::Event>;
/// Maximum acceptable reason length.
///
/// Benchmarks depend on this value, be sure to update weights file when changing this value
#[pallet::constant]
type MaximumReasonLength: Get<u32>;