From bbda32dc41981e9dd4207a63412a43a04c77e452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lo=C3=AFs?= Date: Mon, 13 May 2024 17:55:24 +0200 Subject: [PATCH] fix type convertion to Slot --- cumulus/client/parachain-inherent/src/mock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cumulus/client/parachain-inherent/src/mock.rs b/cumulus/client/parachain-inherent/src/mock.rs index 991a9a94a7b6..896df7a72425 100644 --- a/cumulus/client/parachain-inherent/src/mock.rs +++ b/cumulus/client/parachain-inherent/src/mock.rs @@ -172,7 +172,7 @@ impl> InherentDataProvider let relay_parent_number = self.relay_offset + self.relay_blocks_per_para_block * self.current_para_block; sproof_builder.current_slot = - (relay_parent_number as u64).into() / RELAY_CHAIN_SLOT_DURATION_MILLIS; + ((relay_parent_number / RELAY_CHAIN_SLOT_DURATION_MILLIS) as u64).into(); // Process the downward messages and set up the correct head let mut downward_messages = Vec::new();