Skip to content

Commit f5d72fe

Browse files
replicate the changes in xcm-simulator
1 parent c6603ac commit f5d72fe

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

xcm-simulator/src/storagehub/configs/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ pub mod xcm_config;
55
use crate::mock_message_queue;
66
use crate::storagehub::{configs::xcm_config::XcmConfig, MessageQueue, ParachainInfo, PolkadotXcm};
77
use core::marker::PhantomData;
8-
use cumulus_pallet_parachain_system::{RelayChainStateProof, RelayNumberMonotonicallyIncreases};
8+
use cumulus_pallet_parachain_system::{
9+
DefaultCoreSelector, RelayChainStateProof, RelayNumberMonotonicallyIncreases,
10+
};
911
use cumulus_primitives_core::{
1012
relay_chain::well_known_keys, AggregateMessageOrigin, AssetId, ParaId,
1113
};
@@ -158,6 +160,7 @@ impl pallet_balances::Config for Runtime {
158160
type RuntimeFreezeReason = RuntimeFreezeReason;
159161
type FreezeIdentifier = ();
160162
type MaxFreezes = ConstU32<0>;
163+
type DoneSlashHandler = ();
161164
}
162165

163166
parameter_types! {
@@ -172,6 +175,7 @@ impl pallet_transaction_payment::Config for Runtime {
172175
type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;
173176
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
174177
type OperationalFeeMultiplier = ConstU8<5>;
178+
type WeightInfo = ();
175179
}
176180

177181
impl pallet_sudo::Config for Runtime {
@@ -203,6 +207,7 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
203207
type ReservedXcmpWeight = ReservedXcmpWeight;
204208
type CheckAssociatedRelayNumber = RelayNumberMonotonicallyIncreases;
205209
type ConsensusHook = ConsensusHook;
210+
type SelectCore = DefaultCoreSelector<Runtime>;
206211
}
207212
pub(crate) type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
208213
Runtime,

xcm-simulator/src/storagehub/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mod weights;
77
use crate::mock_message_queue;
88
use smallvec::smallvec;
99
use sp_runtime::{
10-
create_runtime_str, generic, impl_opaque_keys,
10+
generic, impl_opaque_keys,
1111
traits::{BlakeTwo256, IdentifyAccount, Verify},
1212
MultiSignature,
1313
};
@@ -23,6 +23,8 @@ pub use parachains_common::BlockNumber;
2323
pub use sp_runtime::{MultiAddress, Perbill};
2424
use sp_std::prelude::Vec;
2525

26+
extern crate alloc;
27+
2628
use weights::ExtrinsicBaseWeight;
2729

2830
/// Alias to 512-bit hash when used in the context of a transaction signature on the chain.

0 commit comments

Comments
 (0)