Skip to content

Commit

Permalink
fix: make ci happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Dec 9, 2024
1 parent f19aee3 commit d80c747
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion integration-tests/emulated/helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) ) => {
Expand Down
4 changes: 2 additions & 2 deletions relay/polkadot/src/coretime_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ fn migrate_send_assignments_to_coretime_chain<
};

let valid_until: u32 = match valid_until.try_into() {
Ok(val) => val,
Ok(val) => val as u32,
Err(_) => {
log::error!("Converting block number to u32 failed!");
return None
},
};

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::<T>(CoretimeCalls::SetLease(p.into(), time_slice)))
});
Expand Down
7 changes: 3 additions & 4 deletions system-parachains/coretime/coretime-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<RuntimeCall> for IsFilteredBrokerCall {
fn contains(c: &RuntimeCall) -> bool {
Expand Down

0 comments on commit d80c747

Please sign in to comment.