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

Commit

Permalink
Fix mock weight info
Browse files Browse the repository at this point in the history
  • Loading branch information
hirschenberger committed Oct 11, 2021
1 parent a3330da commit 06cfaba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/parachains/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl crate::ump::Config for Test {
type UmpSink = TestUmpSink;
type FirstMessageFactorPercent = FirstMessageFactorPercent;
type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;
type WeightInfo = crate::ump::WeightInfo<()>;
type WeightInfo = ();
}

impl crate::hrmp::Config for Test {
Expand Down
2 changes: 1 addition & 1 deletion runtime/parachains/src/ump/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ frame_benchmarking::benchmarks! {

frame_benchmarking::impl_benchmark_test_suite!(
Ump,
crate::mock::new_test_ext(Default::default()).build(),
crate::mock::new_test_ext(crate::ump::tests::GenesisConfigBuilder::default().build()),
crate::mock::Test
);
1 change: 1 addition & 0 deletions runtime/test-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ impl parachains_ump::Config for Runtime {
type UmpSink = ();
type FirstMessageFactorPercent = FirstMessageFactorPercent;
type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;
type WeightInfo = ();
}

parameter_types! {
Expand Down
1 change: 1 addition & 0 deletions xcm/xcm-simulator/example/src/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ impl ump::Config for Runtime {
type UmpSink = ump::XcmSink<XcmExecutor<XcmConfig>, Runtime>;
type FirstMessageFactorPercent = FirstMessageFactorPercent;
type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;
type WeightInfo = ();
}

impl origin::Config for Runtime {}
Expand Down

0 comments on commit 06cfaba

Please sign in to comment.