Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Salvage #2670
Browse files Browse the repository at this point in the history
Thanks Kian!

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Jun 6, 2023
1 parent 5869e14 commit 9d114d4
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 123 deletions.
54 changes: 21 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pub use xcm::{
v3::{Error, NetworkId::Kusama as KusamaId},
};
pub use xcm_emulator::{
assert_expected_events, bx, cumulus_pallet_dmp_queue, helpers::weight_within_threshold,
Parachain as Para, RelayChain as Relay, TestExt,
assert_expected_events, bx, helpers::weight_within_threshold, Parachain as Para,
RelayChain as Relay, TestExt,
};

#[cfg(test)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,8 @@ fn reserve_transfer_native_asset_from_relay_to_assets() {
AssetHubKusama::execute_with(|| {
type RuntimeEvent = <AssetHubKusama as Para>::RuntimeEvent;

assert_expected_events!(
AssetHubKusama,
vec![
RuntimeEvent::DmpQueue(cumulus_pallet_dmp_queue::Event::ExecutedDownward {
outcome: Outcome::Incomplete(_, Error::UntrustedReserveLocation),
..
}) => {},
]
);
// TODO: This used to emit an event at the DmpQueue pallet which is not gone.. does it have a replacement?
assert_expected_events!(AssetHubKusama, vec![]);
});

// Check if balances are updated accordingly in Relay Chain and Assets Parachain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pub use xcm::{
},
};
pub use xcm_emulator::{
assert_expected_events, bx, cumulus_pallet_dmp_queue, helpers::weight_within_threshold,
Parachain as Para, RelayChain as Relay, TestExt,
assert_expected_events, bx, helpers::weight_within_threshold, Parachain as Para,
RelayChain as Relay, TestExt,
};

#[cfg(test)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,8 @@ fn reserve_transfer_native_asset_from_relay_to_assets() {
AssetHubPolkadot::execute_with(|| {
type RuntimeEvent = <AssetHubPolkadot as Para>::RuntimeEvent;

assert_expected_events!(
AssetHubPolkadot,
vec![
RuntimeEvent::DmpQueue(cumulus_pallet_dmp_queue::Event::ExecutedDownward {
outcome: Outcome::Incomplete(_, Error::UntrustedReserveLocation),
..
}) => {},
]
);
// TODO: This used to emit an event at the DmpQueue pallet which is not gone.. does it have a replacement?
assert_expected_events!(AssetHubPolkadot, vec![]);
});

// Check if balances are updated accordingly in Relay Chain and Assets Parachain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pub use xcm::{
},
};
pub use xcm_emulator::{
assert_expected_events, bx, cumulus_pallet_dmp_queue, helpers::weight_within_threshold,
Parachain as Para, RelayChain as Relay, TestExt,
assert_expected_events, bx, helpers::weight_within_threshold, Parachain as Para,
RelayChain as Relay, TestExt,
};

#[cfg(test)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,8 @@ fn reserve_transfer_native_asset_from_relay_to_assets() {
AssetHubWestend::execute_with(|| {
type RuntimeEvent = <AssetHubWestend as Para>::RuntimeEvent;

assert_expected_events!(
AssetHubWestend,
vec![
RuntimeEvent::DmpQueue(cumulus_pallet_dmp_queue::Event::ExecutedDownward {
outcome: Outcome::Incomplete(_, Error::UntrustedReserveLocation),
..
}) => {},
]
);
// TODO: This used to emit an event at the DmpQueue pallet which is not gone.. does it have a replacement?
assert_expected_events!(AssetHubWestend, vec![]);
});

// Check if balances are updated accordingly in Relay Chain and Assets Parachain
Expand Down
Loading

0 comments on commit 9d114d4

Please sign in to comment.