Skip to content

Commit

Permalink
add LocationToAccountApi runtime api
Browse files Browse the repository at this point in the history
  • Loading branch information
Roznovjak committed Dec 20, 2024
1 parent 30006cc commit 947bfe9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions runtime/basilisk/src/apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,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::LocationToAccountId,
>::convert_location(location)
}
}

impl cumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
fn can_build_upon(
included_hash: <Block as BlockT>::Hash,
Expand Down

0 comments on commit 947bfe9

Please sign in to comment.