diff --git a/runtime/primitives/src/lib.rs b/runtime/primitives/src/lib.rs index 392a9e6757d..afb433ef6e2 100644 --- a/runtime/primitives/src/lib.rs +++ b/runtime/primitives/src/lib.rs @@ -68,3 +68,6 @@ pub type Header = generic::Header; pub type Block = generic::Block; /// Block ID. pub type BlockId = generic::BlockId; + +/// SS58 prefix of VARA. +pub const VARA_SS58_PREFIX: u8 = 137; diff --git a/runtime/vara/src/lib.rs b/runtime/vara/src/lib.rs index 8b01682a855..155634420e6 100644 --- a/runtime/vara/src/lib.rs +++ b/runtime/vara/src/lib.rs @@ -75,7 +75,7 @@ pub use runtime_common::{ impl_runtime_apis_plus_common, BlockHashCount, DealWithFees, AVERAGE_ON_INITIALIZE_RATIO, GAS_LIMIT_MIN_PERCENTAGE_NUM, NORMAL_DISPATCH_RATIO, VALUE_PER_GAS, }; -pub use runtime_primitives::{AccountId, Signature}; +pub use runtime_primitives::{AccountId, Signature, VARA_SS58_PREFIX}; use runtime_primitives::{Balance, BlockNumber, Hash, Index, Moment}; use sp_api::impl_runtime_apis; use sp_core::{crypto::KeyTypeId, ConstBool, ConstU64, OpaqueMetadata, H256}; @@ -189,7 +189,7 @@ pub fn native_version() -> NativeVersion { parameter_types! { pub const Version: RuntimeVersion = VERSION; - pub const SS58Prefix: u8 = 137; + pub const SS58Prefix: u8 = VARA_SS58_PREFIX; pub RuntimeBlockWeights: BlockWeights = runtime_common::block_weights_for(MAXIMUM_BLOCK_WEIGHT); pub RuntimeBlockLength: BlockLength = BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);