Companion for #6025 (#1098)

This commit is contained in:
Benjamin Kampmann
2020-05-15 19:35:39 +02:00
committed by GitHub
parent 5d58f7a43a
commit b660c226d8
5 changed files with 165 additions and 133 deletions
+1 -1
View File
@@ -1245,7 +1245,7 @@ impl<T: Trait> Module<T> {
);
ensure!(
schedule.max_head_data_size >= candidate.candidate().head_data.0.len() as _,
schedule.max_head_data_size as usize >= candidate.candidate().head_data.0.len(),
Error::<T>::HeadDataTooLarge,
);