Skip to content
Snippets Groups Projects
Commit d563a18a authored by Adrian Catangiu's avatar Adrian Catangiu Committed by GitHub
Browse files

Fix XCM bench for new substrate refs (#6663)


* testing new substrate refs

* Fix bench

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

* Fix

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

* Propagate features

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

---------

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
parent 2fa8565f
No related merge requests found
This diff is collapsed.
......@@ -132,4 +132,5 @@ std = [
runtime-benchmarks = [
"pallet-xcm/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
]
......@@ -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]]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment