From c08ac2277f0f8d7bed72b0858cd32e4a87f17e06 Mon Sep 17 00:00:00 2001 From: Gavin Wood <gavin@parity.io> Date: Sun, 27 Oct 2019 14:36:35 +0100 Subject: [PATCH] runtime: Expose const params for nicks module (#3932) * Expose const params for nicks module * Bump runtime --- substrate/node/runtime/src/lib.rs | 4 ++-- substrate/srml/nicks/src/lib.rs | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/substrate/node/runtime/src/lib.rs b/substrate/node/runtime/src/lib.rs index fe97f806fc8..2c9663cc966 100644 --- a/substrate/node/runtime/src/lib.rs +++ b/substrate/node/runtime/src/lib.rs @@ -83,8 +83,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // and set impl_version to equal spec_version. If only runtime // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. - spec_version: 186, - impl_version: 186, + spec_version: 187, + impl_version: 187, apis: RUNTIME_API_VERSIONS, }; diff --git a/substrate/srml/nicks/src/lib.rs b/substrate/srml/nicks/src/lib.rs index 894f7100f81..b5c433a70e7 100644 --- a/substrate/srml/nicks/src/lib.rs +++ b/substrate/srml/nicks/src/lib.rs @@ -100,6 +100,15 @@ decl_module! { pub struct Module<T: Trait> for enum Call where origin: T::Origin { fn deposit_event() = default; + /// Reservation fee. + const ReservationFee: BalanceOf<T> = T::ReservationFee::get(); + + /// The minimum length a name may be. + const MinLength: u32 = T::MinLength::get() as u32; + + /// The maximum length a name may be. + const MaxLength: u32 = T::MaxLength::get() as u32; + /// Set an account's name. The name should be a UTF-8-encoded string by convention, though /// we don't check it. /// -- GitLab