Skip to content

Commit

Permalink
Merge pull request #714 from galacticcouncil/feat/add-xcm-exchange-asset
Browse files Browse the repository at this point in the history
feat: xcm exchange asset
  • Loading branch information
mrq1911 authored Feb 27, 2024
2 parents cb3441b + c6f5d97 commit 5b62edf
Show file tree
Hide file tree
Showing 7 changed files with 162 additions and 139 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "runtime-integration-tests"
version = "1.19.2"
version = "1.19.3"
description = "Integration tests"
authors = ["GalacticCouncil"]
edition = "2021"
Expand Down
15 changes: 6 additions & 9 deletions integration-tests/src/cross_chain_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ fn claim_asset(asset: MultiAsset, recipient: [u8; 32]) {
}

#[test]
fn polkadot_xcm_execute_extrinsic_should_not_be_allowed() {
fn polkadot_xcm_execute_extrinsic_should_be_allowed() {
TestNet::reset();

Hydra::execute_with(|| {
Expand All @@ -435,13 +435,10 @@ fn polkadot_xcm_execute_extrinsic_should_not_be_allowed() {
},
]));

assert_noop!(
hydradx_runtime::PolkadotXcm::execute(
hydradx_runtime::RuntimeOrigin::signed(ALICE.into()),
Box::new(message),
Weight::from_parts(400_000_000_000, 0)
),
pallet_xcm::Error::<hydradx_runtime::Runtime>::Filtered
);
assert_ok!(hydradx_runtime::PolkadotXcm::execute(
hydradx_runtime::RuntimeOrigin::signed(ALICE.into()),
Box::new(message),
Weight::from_parts(400_000_000_000, 0)
),);
});
}
Loading

0 comments on commit 5b62edf

Please sign in to comment.