Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusrodri committed Apr 12, 2024
1 parent 7e28792 commit be1291b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion precompiles/pallet-xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ where
<<Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
From<Option<Runtime::AccountId>>,
<Runtime as frame_system::Config>::RuntimeCall: From<pallet_xcm::Call<Runtime>>,
LocationMatcher: AccountIdToLocationMatcher<Runtime::AccountId>,
LocationMatcher: AccountIdToLocationMatcher<<Runtime as frame_system::Config>::AccountId>,
{
#[precompile::public(
"transferAssets(\
Expand Down
4 changes: 2 additions & 2 deletions primitives/xcm/src/location_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ where
{
fn convert(account: AccountId) -> Option<Location> {
let h160_account = account.into();
return Some(Location::new(
Some(Location::new(
0,
[
PalletInstance(PALLET_INDEX),
Expand All @@ -181,6 +181,6 @@ where
network: None,
},
],
));
))
}
}

0 comments on commit be1291b

Please sign in to comment.