Skip to content

Commit

Permalink
fix type convertion to Slot
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed May 13, 2024
1 parent 1d63b38 commit bbda32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cumulus/client/parachain-inherent/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl<R: Send + Sync + GenerateRandomness<u64>> 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();
Expand Down

0 comments on commit bbda32d

Please sign in to comment.