From 947bfe9e24763a702e4e59266467b114447f3ec0 Mon Sep 17 00:00:00 2001 From: Roznovjak Date: Fri, 20 Dec 2024 13:13:11 +0100 Subject: [PATCH] add LocationToAccountApi runtime api --- runtime/basilisk/src/apis.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/runtime/basilisk/src/apis.rs b/runtime/basilisk/src/apis.rs index 5289a0941f..ab2790f9f4 100644 --- a/runtime/basilisk/src/apis.rs +++ b/runtime/basilisk/src/apis.rs @@ -260,6 +260,18 @@ impl_runtime_apis! { } } + impl xcm_runtime_apis::conversions::LocationToAccountApi 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 for Runtime { fn can_build_upon( included_hash: ::Hash,