Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Jan 26, 2025
1 parent bcf2bf9 commit bb51c06
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,38 +210,3 @@ pub(crate) fn assert_bridge_hub_westend_message_received() {
);
})
}
<<<<<<< HEAD

pub(crate) fn open_bridge_between_asset_hub_rococo_and_asset_hub_westend() {
use testnet_parachains_constants::{
rococo::currency::UNITS as ROC, westend::currency::UNITS as WND,
};

// open AHR -> AHW
BridgeHubRococo::fund_para_sovereign(AssetHubRococo::para_id(), ROC * 5);
AssetHubRococo::open_bridge(
AssetHubRococo::sibling_location_of(BridgeHubRococo::para_id()),
[GlobalConsensus(Westend), Parachain(AssetHubWestend::para_id().into())].into(),
Some((
(roc_at_ah_rococo(), ROC * 1).into(),
BridgeHubRococo::sovereign_account_id_of(BridgeHubRococo::sibling_location_of(
AssetHubRococo::para_id(),
)),
)),
);

// open AHW -> AHR
BridgeHubWestend::fund_para_sovereign(AssetHubWestend::para_id(), WND * 5);
AssetHubWestend::open_bridge(
AssetHubWestend::sibling_location_of(BridgeHubWestend::para_id()),
[GlobalConsensus(Rococo), Parachain(AssetHubRococo::para_id().into())].into(),
Some((
(wnd_at_ah_westend(), WND * 1).into(),
BridgeHubWestend::sovereign_account_id_of(BridgeHubWestend::sibling_location_of(
AssetHubWestend::para_id(),
)),
)),
);
}
=======
>>>>>>> 77104835 (Bridges: emulated tests small nits/improvements (#7322))
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,6 @@ fn send_xcm_through_opened_lane_with_different_xcm_version_on_hops_works() {
// fund sender
AssetHubRococo::fund_accounts(vec![(AssetHubRococoSender::get().into(), amount * 10)]);

<<<<<<< HEAD
// open bridge
open_bridge_between_asset_hub_rococo_and_asset_hub_westend();
=======
// Initially set only default version on all runtimes
let newer_xcm_version = xcm::prelude::XCM_VERSION;
let older_xcm_version = newer_xcm_version - 1;
AssetHubRococo::force_default_xcm_version(Some(older_xcm_version));
BridgeHubRococo::force_default_xcm_version(Some(older_xcm_version));
BridgeHubWestend::force_default_xcm_version(Some(older_xcm_version));
AssetHubWestend::force_default_xcm_version(Some(older_xcm_version));
>>>>>>> 77104835 (Bridges: emulated tests small nits/improvements (#7322))

// send XCM from AssetHubRococo - fails - destination version not known
assert_err!(
send_assets_from_asset_hub_rococo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,38 +225,3 @@ pub(crate) fn assert_bridge_hub_rococo_message_received() {
);
})
}
<<<<<<< HEAD

pub(crate) fn open_bridge_between_asset_hub_rococo_and_asset_hub_westend() {
use testnet_parachains_constants::{
rococo::currency::UNITS as ROC, westend::currency::UNITS as WND,
};

// open AHR -> AHW
BridgeHubRococo::fund_para_sovereign(AssetHubRococo::para_id(), ROC * 5);
AssetHubRococo::open_bridge(
AssetHubRococo::sibling_location_of(BridgeHubRococo::para_id()),
[GlobalConsensus(Westend), Parachain(AssetHubWestend::para_id().into())].into(),
Some((
(roc_at_ah_rococo(), ROC * 1).into(),
BridgeHubRococo::sovereign_account_id_of(BridgeHubRococo::sibling_location_of(
AssetHubRococo::para_id(),
)),
)),
);

// open AHW -> AHR
BridgeHubWestend::fund_para_sovereign(AssetHubWestend::para_id(), WND * 5);
AssetHubWestend::open_bridge(
AssetHubWestend::sibling_location_of(BridgeHubWestend::para_id()),
[GlobalConsensus(Rococo), Parachain(AssetHubRococo::para_id().into())].into(),
Some((
(wnd_at_ah_westend(), WND * 1).into(),
BridgeHubWestend::sovereign_account_id_of(BridgeHubWestend::sibling_location_of(
AssetHubWestend::para_id(),
)),
)),
);
}
=======
>>>>>>> 77104835 (Bridges: emulated tests small nits/improvements (#7322))
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,6 @@ fn send_xcm_through_opened_lane_with_different_xcm_version_on_hops_works() {
// fund sender
AssetHubWestend::fund_accounts(vec![(AssetHubWestendSender::get().into(), amount * 10)]);

<<<<<<< HEAD
// open bridge
open_bridge_between_asset_hub_rococo_and_asset_hub_westend();
=======
// Initially set only default version on all runtimes
let newer_xcm_version = xcm::prelude::XCM_VERSION;
let older_xcm_version = newer_xcm_version - 1;
AssetHubRococo::force_default_xcm_version(Some(older_xcm_version));
BridgeHubRococo::force_default_xcm_version(Some(older_xcm_version));
BridgeHubWestend::force_default_xcm_version(Some(older_xcm_version));
AssetHubWestend::force_default_xcm_version(Some(older_xcm_version));
>>>>>>> 77104835 (Bridges: emulated tests small nits/improvements (#7322))

// send XCM from AssetHubWestend - fails - destination version not known
assert_err!(
send_assets_from_asset_hub_westend(
Expand Down

0 comments on commit bb51c06

Please sign in to comment.