Skip to content

Commit

Permalink
Add LocationToAccountAPI to coretime-polkadot
Browse files Browse the repository at this point in the history
  • Loading branch information
seadanda committed Aug 8, 2024
1 parent 6fa2c2d commit 9e13618
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions system-parachains/coretime/coretime-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,18 @@ impl_runtime_apis! {
}
}

impl xcm_runtime_apis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
fn convert_location(location: VersionedLocation) -> Result<
AccountId,
xcm_runtime_apis::conversions::Error
> {
xcm_runtime_apis::conversions::LocationToAccountHelper::<
AccountId,
xcm_config::LocationToAccountId,
>::convert_location(location)
}
}

impl sp_genesis_builder::GenesisBuilder<Block> for Runtime {
fn build_state(config: Vec<u8>) -> sp_genesis_builder::Result {
build_state::<RuntimeGenesisConfig>(config)
Expand Down

0 comments on commit 9e13618

Please sign in to comment.