From 21ab96013a4cae9f8e88f5baea27929e1247db1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20Dorado=20Su=C3=A1rez?= Date: Sun, 8 Dec 2024 22:22:22 -0500 Subject: [PATCH] fix: make ci happy --- integration-tests/emulated/helpers/src/lib.rs | 1 - relay/polkadot/src/coretime_migration.rs | 2 +- system-parachains/coretime/coretime-polkadot/src/lib.rs | 7 +++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/integration-tests/emulated/helpers/src/lib.rs b/integration-tests/emulated/helpers/src/lib.rs index 5e182829fc..08bf402e9d 100644 --- a/integration-tests/emulated/helpers/src/lib.rs +++ b/integration-tests/emulated/helpers/src/lib.rs @@ -31,7 +31,6 @@ pub use xcm_emulator::Chain; /// TODO: when bumping to polkadot-sdk v1.8.0, /// remove this crate altogether and get the macros from `emulated-integration-tests-common`. /// TODO: backport this macros to polkadot-sdk - #[macro_export] macro_rules! test_relay_is_trusted_teleporter { ( $sender_relay:ty, $sender_xcm_config:ty, vec![$( $receiver_para:ty ),+], ($assets:expr, $amount:expr) ) => { diff --git a/relay/polkadot/src/coretime_migration.rs b/relay/polkadot/src/coretime_migration.rs index 54e498e19a..5bf73efc42 100644 --- a/relay/polkadot/src/coretime_migration.rs +++ b/relay/polkadot/src/coretime_migration.rs @@ -244,7 +244,7 @@ fn migrate_send_assignments_to_coretime_chain< }, }; - let time_slice = (valid_until + TIMESLICE_PERIOD - 1) / TIMESLICE_PERIOD; + let time_slice = (valid_until + TIMESLICE_PERIOD - 1).div_ceil(TIMESLICE_PERIOD); log::trace!(target: "coretime-migration", "Sending of lease holding para {:?}, valid_until: {:?}, time_slice: {:?}", p, valid_until, time_slice); Some(mk_coretime_call::(CoretimeCalls::SetLease(p.into(), time_slice))) }); diff --git a/system-parachains/coretime/coretime-polkadot/src/lib.rs b/system-parachains/coretime/coretime-polkadot/src/lib.rs index 3cce775a93..8b8de4fce2 100644 --- a/system-parachains/coretime/coretime-polkadot/src/lib.rs +++ b/system-parachains/coretime/coretime-polkadot/src/lib.rs @@ -181,11 +181,10 @@ parameter_types! { } /// Filter: -/// - Credit purchase calls until the credit system is implemented. Otherwise, users -/// may have chance of locking their funds forever on purchased credits they cannot use. +/// - Credit purchase calls until the credit system is implemented. Otherwise, users may have chance +/// of locking their funds forever on purchased credits they cannot use. /// - The interlace call until the relay can support this fully -/// - Auto-renew functionality until resolution of polkadot-sdk issue -/// [#6474](https://github.com/paritytech/polkadot-sdk/issues/6474) +/// - Auto-renew functionality until resolution of polkadot-sdk issue [#6474](https://github.com/paritytech/polkadot-sdk/issues/6474) pub struct IsFilteredBrokerCall; impl Contains for IsFilteredBrokerCall { fn contains(c: &RuntimeCall) -> bool {