From ef5eb52e9028322f266380278b920af6d253de42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20P=C3=A1nik?= Date: Fri, 4 Jun 2021 11:01:05 +0200 Subject: [PATCH] update ss58 type to u16 (#8955) (cherry picked from commit e98aca335f066d84d7a5cbabf280392f39e1cc99) --- bin/node/runtime/src/lib.rs | 2 +- frame/system/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/node/runtime/src/lib.rs b/bin/node/runtime/src/lib.rs index 3732adfb9a78d..d17d793843fb8 100644 --- a/bin/node/runtime/src/lib.rs +++ b/bin/node/runtime/src/lib.rs @@ -186,7 +186,7 @@ parameter_types! { }) .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO) .build_or_panic(); - pub const SS58Prefix: u8 = 42; + pub const SS58Prefix: u16 = 42; } const_assert!(NORMAL_DISPATCH_RATIO.deconstruct() >= AVERAGE_ON_INITIALIZE_RATIO.deconstruct()); diff --git a/frame/system/src/lib.rs b/frame/system/src/lib.rs index 6938df7e86c23..f0597ea2fe0f3 100644 --- a/frame/system/src/lib.rs +++ b/frame/system/src/lib.rs @@ -266,7 +266,7 @@ pub mod pallet { /// that the runtime should know about the prefix in order to make use of it as /// an identifier of the chain. #[pallet::constant] - type SS58Prefix: Get; + type SS58Prefix: Get; /// What to do if the user wants the code set to something. Just use `()` unless you are in /// cumulus.