From 6372d2d7945d1cb70431632b7b562a776110f67f Mon Sep 17 00:00:00 2001 From: ron Date: Wed, 1 Nov 2023 11:21:43 +0800 Subject: [PATCH 1/2] Add WeightToFee to inbound queue config --- .../parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs index c1c4ca880826..4fb2431151c3 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs @@ -528,6 +528,7 @@ impl snowbridge_inbound_queue::Config for Runtime { type Helper = Runtime; type MessageConverter = MessageToXcm; + type WeightToFee = WeightToFee; } pub const GWEI: u128 = 1_000_000_000; From 79197a35db823cdfacd5d105e5b6988d16d8798c Mon Sep 17 00:00:00 2001 From: ron Date: Wed, 1 Nov 2023 18:11:50 +0800 Subject: [PATCH 2/2] Update for benchmark --- .../runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs index 6b5395248ac2..67237de0d9e7 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs @@ -98,11 +98,10 @@ use xcm::latest::prelude::*; use weights::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight}; -#[cfg(not(feature = "runtime-benchmarks"))] -use crate::xcm_config::AllowSiblingsOnly; use crate::{ bridge_hub_rococo_config::BridgeRefundBridgeHubWococoMessages, - bridge_hub_wococo_config::BridgeRefundBridgeHubRococoMessages, xcm_config::XcmRouter, + bridge_hub_wococo_config::BridgeRefundBridgeHubRococoMessages, + xcm_config::{AllowSiblingsOnly, XcmRouter}, }; use parachains_common::{ impls::DealWithFees,