Skip to content

Commit d938719

Browse files
committed
more fixes
1 parent 7f9a3dc commit d938719

4 files changed

Lines changed: 25 additions & 0 deletions

File tree

bin/rialto-parachain/runtime/src/lib.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ impl pallet_balances::Config for Runtime {
304304
type MaxLocks = ConstU32<50>;
305305
type MaxReserves = ConstU32<50>;
306306
type ReserveIdentifier = [u8; 8];
307+
type HoldIdentifier = ();
308+
type FreezeIdentifier = ();
309+
type MaxHolds = ConstU32<0>;
310+
type MaxFreezes = ConstU32<0>;
307311
}
308312

309313
impl pallet_transaction_payment::Config for Runtime {
@@ -492,6 +496,7 @@ impl pallet_xcm::Config for Runtime {
492496
type WeightInfo = pallet_xcm::TestWeightInfo;
493497
#[cfg(feature = "runtime-benchmarks")]
494498
type ReachableDest = ReachableDest;
499+
type AdminOrigin = frame_system::EnsureRoot<AccountId>;
495500
}
496501

497502
impl cumulus_pallet_xcm::Config for Runtime {
@@ -637,6 +642,14 @@ impl_runtime_apis! {
637642
fn metadata() -> OpaqueMetadata {
638643
OpaqueMetadata::new(Runtime::metadata().into())
639644
}
645+
646+
fn metadata_at_version(version: u32) -> Option<OpaqueMetadata> {
647+
Runtime::metadata_at_version(version)
648+
}
649+
650+
fn metadata_versions() -> sp_std::vec::Vec<u32> {
651+
Runtime::metadata_versions()
652+
}
640653
}
641654

642655
impl sp_block_builder::BlockBuilder<Block> for Runtime {

bin/runtime-common/src/mock.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ impl pallet_balances::Config for TestRuntime {
172172
type MaxLocks = ConstU32<50>;
173173
type MaxReserves = ConstU32<50>;
174174
type ReserveIdentifier = [u8; 8];
175+
type HoldIdentifier = ();
176+
type FreezeIdentifier = ();
177+
type MaxHolds = ConstU32<0>;
178+
type MaxFreezes = ConstU32<0>;
175179
}
176180

177181
impl pallet_transaction_payment::Config for TestRuntime {

modules/messages/src/mock.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ impl pallet_balances::Config for TestRuntime {
133133
type WeightInfo = ();
134134
type MaxReserves = ();
135135
type ReserveIdentifier = ();
136+
type HoldIdentifier = ();
137+
type FreezeIdentifier = ();
138+
type MaxHolds = ConstU32<0>;
139+
type MaxFreezes = ConstU32<0>;
136140
}
137141

138142
parameter_types! {

modules/relayers/src/mock.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ impl pallet_balances::Config for TestRuntime {
8686
type WeightInfo = ();
8787
type MaxReserves = ();
8888
type ReserveIdentifier = ();
89+
type HoldIdentifier = ();
90+
type FreezeIdentifier = ();
91+
type MaxHolds = ConstU32<0>;
92+
type MaxFreezes = ConstU32<0>;
8993
}
9094

9195
impl pallet_bridge_relayers::Config for TestRuntime {

0 commit comments

Comments
 (0)