Fix benchmark with new XCM::V3 MAX_INSTRUCTIONS_TO_DECODE (#2514)

* Fix benchmark with new XCM::V3 MAX_INSTRUCTIONS_TO_DECODE

* Small refactor

* `ClearOrigin` replaced by ExpectPallet

* Doc

* Spellcheck

* Fixes and pr reviews
This commit is contained in:
Branislav Kontur
2023-09-01 11:32:41 +02:00
committed by Bastian Köcher
parent 9216b781fd
commit 98ee19cb7d
3 changed files with 71 additions and 25 deletions
+3 -2
View File
@@ -1036,6 +1036,7 @@ impl_runtime_apis! {
];
use bridge_runtime_common::messages_benchmarking::{
generate_xcm_builder_bridge_message_sample,
prepare_message_delivery_proof_from_grandpa_chain,
prepare_message_delivery_proof_from_parachain,
prepare_message_proof_from_grandpa_chain,
@@ -1070,7 +1071,7 @@ impl_runtime_apis! {
Runtime,
WithRialtoParachainsInstance,
WithRialtoParachainMessageBridge,
>(params, xcm::v3::Junctions::Here)
>(params, generate_xcm_builder_bridge_message_sample(xcm::v3::Junctions::Here))
}
fn prepare_message_delivery_proof(
@@ -1101,7 +1102,7 @@ impl_runtime_apis! {
Runtime,
RialtoGrandpaInstance,
WithRialtoMessageBridge,
>(params, xcm::v3::Junctions::Here)
>(params, generate_xcm_builder_bridge_message_sample(xcm::v3::Junctions::Here))
}
fn prepare_message_delivery_proof(