feat: add super trait for block number (#2334)

And also related to a subxt PR
https://github.com/paritytech/subxt/pull/1265
This commit is contained in:
yjh authored and GitHub committed 2023-12-14 22:55:46 +01:00
1 parent 6dece52e9d
commit 2cee874742
5 files changed
+45 -36

No files matched your search

+1 -1
View File
@@ -446,7 +446,7 @@ impl<T: Config> Pallet<T> {
}
let rotations_since_session_start: BlockNumberFor<T> =
(at - session_start_block) / config.group_rotation_frequency.into();
(at - session_start_block) / config.group_rotation_frequency;
let rotations_since_session_start =
<BlockNumberFor<T> as TryInto<u32>>::try_into(rotations_since_session_start)