diff --git a/precompiles/pallet-xcm/src/lib.rs b/precompiles/pallet-xcm/src/lib.rs index 5a44ffa..0c9f1f1 100644 --- a/precompiles/pallet-xcm/src/lib.rs +++ b/precompiles/pallet-xcm/src/lib.rs @@ -54,7 +54,7 @@ where <::RuntimeCall as Dispatchable>::RuntimeOrigin: From>, ::RuntimeCall: From>, - LocationMatcher: AccountIdToLocationMatcher, + LocationMatcher: AccountIdToLocationMatcher<::AccountId>, { #[precompile::public( "transferAssets(\ diff --git a/primitives/xcm/src/location_converter.rs b/primitives/xcm/src/location_converter.rs index 0418ae8..5d1a0c3 100644 --- a/primitives/xcm/src/location_converter.rs +++ b/primitives/xcm/src/location_converter.rs @@ -172,7 +172,7 @@ where { fn convert(account: AccountId) -> Option { let h160_account = account.into(); - return Some(Location::new( + Some(Location::new( 0, [ PalletInstance(PALLET_INDEX), @@ -181,6 +181,6 @@ where network: None, }, ], - )); + )) } }