@@ -26,7 +26,6 @@ use ismp::{
2626 module:: IsmpModule ,
2727 router:: { PostRequest , Request , Response , StorageValue , Timeout } ,
2828} ;
29- use ismp_parachain:: PASEO_CONSENSUS_ID ;
3029pub use pallet:: * ;
3130use pallet_broker:: { RegionId , Timeslice } ;
3231use pallet_ismp:: { weights:: IsmpModuleWeight , ModuleId } ;
@@ -37,7 +36,7 @@ use scale_info::prelude::{format, vec, vec::Vec};
3736use sp_core:: H256 ;
3837use sp_runtime:: {
3938 traits:: { BlockNumberProvider , Zero } ,
40- SaturatedConversion ,
39+ ConsensusEngineId , SaturatedConversion ,
4140} ;
4241
4342#[ cfg( test) ]
@@ -137,6 +136,9 @@ pub mod pallet {
137136 #[ pallet:: constant]
138137 type UnsignedPriority : Get < TransactionPriority > ;
139138
139+ #[ pallet:: constant]
140+ type ConsensusId : Get < ConsensusEngineId > ;
141+
140142 /// Weight Info
141143 type WeightInfo : WeightInfo ;
142144 }
@@ -345,7 +347,7 @@ pub mod pallet {
345347 let coretime_chain_height =
346348 T :: StateMachineHeightProvider :: latest_state_machine_height ( StateMachineId {
347349 state_id : T :: CoretimeChain :: get ( ) ,
348- consensus_state_id : PASEO_CONSENSUS_ID , // Is this used on Kusama?
350+ consensus_state_id : T :: ConsensusId :: get ( ) ,
349351 } )
350352 . ok_or ( Error :: < T > :: LatestHeightInaccessible ) ?;
351353
0 commit comments