Skip to content

Commit

Permalink
pallet-xcm: fix benchmarking (#2489)
Browse files Browse the repository at this point in the history
Use non-zero weight limit in benchmarking `pallet_xcm::execute()` so the
given XCM actually executes.
  • Loading branch information
acatangiu authored Nov 24, 2023
1 parent 07ea6da commit 90488ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polkadot/xcm/pallet-xcm/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 90488ff

Please sign in to comment.