Skip to content

Commit 6ad6243

Browse files
committed
fix more xcm tests
1 parent 865ff74 commit 6ad6243

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

polkadot/xcm/pallet-xcm/src/mock.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pub use core::cell::RefCell;
1818
use frame_support::{
1919
construct_runtime, derive_impl, parameter_types,
2020
traits::{
21-
fungible::HoldConsideration, AsEnsureOriginWithArg, ConstU128, ConstU32, Contains, Equals,
22-
Everything, EverythingBut, Footprint, Nothing,
21+
fungible::HoldConsideration, tokens::DirectBurn, AsEnsureOriginWithArg, ConstU128, ConstU32,
22+
Contains, Equals, Everything, EverythingBut, Footprint, Nothing,
2323
},
2424
weights::Weight,
2525
};
@@ -284,6 +284,7 @@ impl pallet_balances::Config for Test {
284284
type Balance = Balance;
285285
type ExistentialDeposit = ExistentialDeposit;
286286
type AccountStore = System;
287+
type BurnHandler = DirectBurn<Balances>;
287288
}
288289

289290
#[cfg(feature = "runtime-benchmarks")]

polkadot/xcm/xcm-simulator/example/src/parachain/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ use core::marker::PhantomData;
2323
use frame_support::{
2424
construct_runtime, derive_impl, parameter_types,
2525
traits::{
26-
ConstU128, ContainsPair, Disabled, EnsureOrigin, EnsureOriginWithArg, Everything, Nothing,
26+
tokens::DirectBurn, ConstU128, ContainsPair, Disabled, EnsureOrigin, EnsureOriginWithArg,
27+
Everything, Nothing,
2728
},
2829
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
2930
};
@@ -58,6 +59,7 @@ impl pallet_balances::Config for Runtime {
5859
type Balance = Balance;
5960
type ExistentialDeposit = ConstU128<1>;
6061
type AccountStore = System;
62+
type BurnHandler = DirectBurn<Balances>;
6163
}
6264

6365
#[cfg(feature = "runtime-benchmarks")]

polkadot/xcm/xcm-simulator/example/src/relay_chain/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ pub use xcm_config::*;
2222
use frame_support::{
2323
construct_runtime, derive_impl, parameter_types,
2424
traits::{
25-
AsEnsureOriginWithArg, ConstU128, Disabled, Everything, Nothing, ProcessMessage,
26-
ProcessMessageError,
25+
tokens::DirectBurn, AsEnsureOriginWithArg, ConstU128, Disabled, Everything, Nothing,
26+
ProcessMessage, ProcessMessageError,
2727
},
2828
weights::{Weight, WeightMeter},
2929
};
@@ -61,6 +61,7 @@ impl pallet_balances::Config for Runtime {
6161
type Balance = Balance;
6262
type ExistentialDeposit = ConstU128<1>;
6363
type AccountStore = System;
64+
type BurnHandler = DirectBurn<Balances>;
6465
}
6566

6667
impl pallet_uniques::Config for Runtime {

polkadot/xcm/xcm-simulator/fuzzer/src/parachain.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use codec::{Decode, Encode};
2020
use frame_support::{
2121
construct_runtime, derive_impl, parameter_types,
22-
traits::{Disabled, Everything, Nothing},
22+
traits::{tokens::DirectBurn, Disabled, Everything, Nothing},
2323
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
2424
};
2525

@@ -78,6 +78,7 @@ impl pallet_balances::Config for Runtime {
7878
type Balance = Balance;
7979
type ExistentialDeposit = ExistentialDeposit;
8080
type AccountStore = System;
81+
type BurnHandler = DirectBurn<Balances>;
8182
}
8283

8384
parameter_types! {

polkadot/xcm/xcm-simulator/fuzzer/src/relay_chain.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
use frame_support::{
2020
construct_runtime, derive_impl, parameter_types,
21-
traits::{Disabled, Everything, Nothing, ProcessMessage, ProcessMessageError},
21+
traits::{tokens::DirectBurn, Disabled, Everything, Nothing, ProcessMessage, ProcessMessageError},
2222
weights::{Weight, WeightMeter},
2323
};
2424

@@ -79,6 +79,7 @@ impl pallet_balances::Config for Runtime {
7979
type Balance = Balance;
8080
type ExistentialDeposit = ExistentialDeposit;
8181
type AccountStore = System;
82+
type BurnHandler = DirectBurn<Balances>;
8283
}
8384

8485
impl shared::Config for Runtime {

0 commit comments

Comments
 (0)