diff --git a/control/preimage/src/main.rs b/control/preimage/src/main.rs index 2d2b8496d1..4f1befea55 100644 --- a/control/preimage/src/main.rs +++ b/control/preimage/src/main.rs @@ -324,7 +324,11 @@ async fn run() -> Result<(), Box> { .await?; let call2 = send_xcm_asset_hub(&context, vec![force_xcm_version(), set_ethereum_fee]).await?; - sudo(Box::new(utility_force_batch(vec![call1, call2]))) + if cfg!(any(feature = "paseo", feature = "westend")) { + sudo(Box::new(utility_force_batch(vec![call1, call2]))) + } else { + utility_force_batch(vec![call1, call2]) + } } Command::UpdateAsset(params) => { let call = send_xcm_asset_hub( @@ -335,7 +339,11 @@ async fn run() -> Result<(), Box> { ], ) .await?; - sudo(Box::new(call)) + if cfg!(any(feature = "paseo", feature = "westend")) { + sudo(Box::new(call)) + } else { + call + } } Command::GatewayOperatingMode(params) => { let call = commands::gateway_operating_mode(¶ms.gateway_operating_mode);