Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Sep 27, 2024
1 parent 4902e87 commit a48f26c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions control/preimage/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,9 @@ pub fn utility_force_batch(calls: Vec<RelayRuntimeCall>) -> RelayRuntimeCall {
}

pub fn sudo(call: Box<RelayRuntimeCall>) -> RelayRuntimeCall {
#[cfg(feature = "paseo")]
return RelayRuntimeCall::Sudo(
crate::relay_runtime::runtime_types::pallet_sudo::pallet::Call::sudo { call },
);
#[cfg(not(feature = "paseo"))]
return RelayRuntimeCall::Utility(
crate::relay_runtime::runtime_types::pallet_utility::pallet::Call::batch_all { calls },
);
}

pub fn force_xcm_version() -> AssetHubRuntimeCall {
Expand Down
5 changes: 3 additions & 2 deletions control/preimage/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,15 @@ async fn run() -> Result<(), Box<dyn std::error::Error>> {
sudo(Box::new(utility_force_batch(vec![call1, call2])))
}
Command::UpdateAsset(params) => {
send_xcm_asset_hub(
let call = send_xcm_asset_hub(
&context,
vec![
commands::make_asset_sufficient(params),
commands::force_set_metadata(params),
],
)
.await?
.await?;
sudo(Box::new(call))
}
Command::GatewayOperatingMode(params) => {
let call = commands::gateway_operating_mode(&params.gateway_operating_mode);
Expand Down

0 comments on commit a48f26c

Please sign in to comment.