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

pallet-xcm: fix benchmarking (#2489)

Use non-zero weight limit in benchmarking `pallet_xcm::execute()` so the
given XCM actually executes.
parent 07ea6da2
No related merge requests found
Pipeline #418069 canceled with stages
in 39 seconds
......@@ -168,7 +168,7 @@ benchmarks! {
return Err(BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX)))
}
let versioned_msg = VersionedXcm::from(msg);
}: _<RuntimeOrigin<T>>(execute_origin, Box::new(versioned_msg), Weight::zero())
}: _<RuntimeOrigin<T>>(execute_origin, Box::new(versioned_msg), Weight::MAX)
force_xcm_version {
let loc = T::reachable_dest().ok_or(
......
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