Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update frame/staking/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
  • Loading branch information
kianenigma and gui1117 authored Feb 9, 2021
commit 1eccbae85a015bf3372762a768444e90a322c999
4 changes: 2 additions & 2 deletions frame/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1402,8 +1402,8 @@ decl_module! {
}

fn integrity_test() {
// Ensure the size of both ValidatorIndex and NominatorIndex. They both need to be well
// below usize.
// Ensure the size of both ValidatorIndex and NominatorIndex. They both need to be less or
// equal to usize.
assert!(size_of::<ValidatorIndexOf<T>>() <= size_of::<usize>());
assert!(size_of::<ValidatorIndexOf<T>>() <= size_of::<u32>());
assert!(size_of::<NominatorIndexOf<T>>() <= size_of::<usize>());
Expand Down