Skip to content

Commit

Permalink
mock cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusrodri committed Apr 2, 2024
1 parent 2134b1b commit 346030f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions precompiles/pallet-xcm/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,6 @@ construct_runtime!(
}
);

pub struct AccountIdToLocation;
impl sp_runtime::traits::Convert<AccountId, Location> for AccountIdToLocation {
fn convert(account: AccountId) -> Location {
let as_h160: H160 = account.into();
Location::new(
0,
[AccountKey20 {
network: None,
key: as_h160.as_fixed_bytes().clone(),
}],
)
}
}

parameter_types! {
pub ParachainId: cumulus_primitives_core::ParaId = 100.into();
pub LocalNetworkId: Option<NetworkId> = None;
Expand Down Expand Up @@ -135,10 +121,6 @@ pub type Precompiles<R> =
pub type PCall = PalletXcmPrecompileCall<Runtime>;

mock_account!(ParentAccount, |_| MockAccount::from_u64(4));
mock_account!(SelfReserveAddress, |_| MockAccount::from_u64(3));
mock_account!(AssetAddress(u128), |value: AssetAddress| {
AddressInPrefixedSet(0xffffffff, value.0).into()
});

// use simple encoding for parachain accounts.
mock_account!(
Expand Down

0 comments on commit 346030f

Please sign in to comment.