Fix XCM bench for new substrate refs (#6663)

* testing new substrate refs

* Fix bench

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Propagate features

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Adrian Catangiu
2023-02-02 20:56:25 +02:00
committed by GitHub
parent 2fa8565f9d
commit d563a18a3f
5 changed files with 188 additions and 183 deletions
+181 -181
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -132,4 +132,5 @@ std = [
runtime-benchmarks = [
"pallet-xcm/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
]
+2
View File
@@ -46,6 +46,8 @@ std = [
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
]
try-runtime = ["frame-support/try-runtime"]
@@ -157,8 +157,8 @@ impl EnsureOriginWithArg<RuntimeOrigin, MultiLocation> for ForeignCreators {
}
#[cfg(feature = "runtime-benchmarks")]
fn successful_origin(a: &MultiLocation) -> RuntimeOrigin {
pallet_xcm::Origin::Xcm(a.clone()).into()
fn try_successful_origin(a: &MultiLocation) -> Result<RuntimeOrigin, ()> {
Ok(pallet_xcm::Origin::Xcm(a.clone()).into())
}
}
@@ -30,6 +30,8 @@ polkadot-parachain = { path = "../../../parachain" }
[features]
runtime-benchmarks = [
"pallet-xcm/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"frame-support/runtime-benchmarks",
]
[[bin]]