Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed May 13, 2024
1 parent 66f80da commit 725151c
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions runtime/regionx/src/ismp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,11 @@ use ismp_parachain::ParachainConsensusClient;
use pallet_ismp::NoOpMmrTree;
use sp_std::prelude::*;

pub struct HostStateMachine;
impl Get<StateMachine> for HostStateMachine {
fn get() -> StateMachine {
StateMachine::Kusama(ParachainInfo::get().into())
}
}

pub struct Coprocessor;

impl Get<Option<StateMachine>> for Coprocessor {
fn get() -> Option<StateMachine> {
None
}
parameter_types! {
// The hyperbridge parachain on Polkadot
pub const Coprocessor: Option<StateMachine> = None;
// The host state machine of this pallet
pub const HostStateMachine: StateMachine = StateMachine::Polkadot(ParachainInfo::get().into());
}

impl ismp_parachain::Config for Runtime {
Expand Down

0 comments on commit 725151c

Please sign in to comment.