Skip to content

Commit

Permalink
removed unuseful code
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Oct 9, 2024
1 parent 3143b7a commit 95e89a2
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions xcm-simulator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ pub fn sibling_account_id(para: u32) -> parachain::AccountId {
parachain::LocationToAccountId::convert_location(&location.into()).unwrap()
}

pub fn sibling_account_id_20(para: u32) -> laosish::AccountId {
let location = (Parent, Parachain(para));
laosish::LocationToAccountId::convert_location(&location.into()).unwrap()
}

pub fn parent_account_account_id(who: sp_runtime::AccountId32) -> parachain::AccountId {
let location = (Parent, AccountId32 { network: None, id: who.into() });
parachain::LocationToAccountId::convert_location(&location.into()).unwrap()
Expand Down Expand Up @@ -148,15 +143,9 @@ pub fn para_ext_ethereum(para_id: u32) -> sp_io::TestExternalities {

let mut t = frame_system::GenesisConfig::<Runtime>::default().build_storage().unwrap();

pallet_balances::GenesisConfig::<Runtime> {
balances: vec![
(ALITH.into(), INITIAL_BALANCE),
(sibling_account_id_20(PARA_A_ID), INITIAL_BALANCE),
(sibling_account_id_20(PARA_B_ID), INITIAL_BALANCE),
],
}
.assimilate_storage(&mut t)
.unwrap();
pallet_balances::GenesisConfig::<Runtime> { balances: vec![(ALITH.into(), INITIAL_BALANCE)] }
.assimilate_storage(&mut t)
.unwrap();

let mut ext = sp_io::TestExternalities::new(t);
ext.execute_with(|| {
Expand Down

0 comments on commit 95e89a2

Please sign in to comment.