This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Description
The intent of
|
fn nominators_also_get_slashed() { |
is to make sure that nominators also get slashed but in the test, nominator_slash is equal to 0 and the test is checking that a slash of 0 is applied which is equivalent of no slash at all.
In addition, the others vector in the validator's exposure is an empty array which suggests that no nominators are going to be slashed.
I'm not sure if it's just some misconfigured test case or a bug in the code but in any case, I don't think the test case is verifying what it was meant to verify.