Skip to content

Commit 7c45613

Browse files
authored
Fix xcm-builder mock (#7652)
* Fix xcm-builder mock (preparation for monorepo) The CI fails here when the runtime-benchmarks feature is enabled in the workspace. Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update xcm/xcm-builder/Cargo.toml --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]>
1 parent 26be072 commit 7c45613

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

polkadot/xcm/xcm-builder/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ runtime-benchmarks = [
4242
"frame-support/runtime-benchmarks",
4343
"frame-system/runtime-benchmarks",
4444
"xcm-executor/runtime-benchmarks",
45+
"pallet-assets/runtime-benchmarks",
4546
]
4647
std = [
4748
"log/std",

polkadot/xcm/xcm-builder/src/tests/pay/mock.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ impl pallet_assets::Config for Test {
119119
type RemoveItemsLimit = RemoveItemsLimit;
120120
type AssetIdParameter = AssetIdForAssets;
121121
type CallbackHandle = ();
122+
#[cfg(feature = "runtime-benchmarks")]
123+
type BenchmarkHelper = ();
122124
}
123125

124126
parameter_types! {

0 commit comments

Comments
 (0)