Skip to content

Commit

Permalink
Handle relocation of ParachainHost in Polkadot
Browse files Browse the repository at this point in the history
`ParachainHost` is no longer versioned and is in `runtime_api` module.

This is a companion for
paritytech/polkadot#5048
  • Loading branch information
tdimitrov committed Mar 23, 2022
1 parent 2fe7a2e commit 3ddcc2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/relay-chain-inprocess-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ use async_trait::async_trait;
use cumulus_primitives_core::{
relay_chain::{
v2::{
CommittedCandidateReceipt, OccupiedCoreAssumption, ParachainHost, SessionIndex,
CommittedCandidateReceipt, OccupiedCoreAssumption, SessionIndex,
ValidatorId,
},
runtime_api::ParachainHost,
Block as PBlock, BlockId, Hash as PHash, Header as PHeader, InboundHrmpMessage,
},
InboundDownwardMessage, ParaId, PersistedValidationData,
Expand Down
2 changes: 1 addition & 1 deletion primitives/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub use polkadot_primitives::v2::{
/// A module that re-exports relevant relay chain definitions.
pub mod relay_chain {
pub use polkadot_core_primitives::*;
pub use polkadot_primitives::{v2, v2::well_known_keys};
pub use polkadot_primitives::{v2, v2::well_known_keys, runtime_api};
}

/// An inbound HRMP message.
Expand Down

0 comments on commit 3ddcc2e

Please sign in to comment.