Better testing for lock types in staking/democracy. (#3565)

* Better testing for lock types in staking/democracy.

* Update docs.

* Update srml/executive/src/lib.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Update srml/executive/src/lib.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Fix test
This commit is contained in:
Kian Paimani
2019-09-06 19:41:29 +02:00
committed by GitHub
parent 027d88796b
commit a381f033bd
3 changed files with 44 additions and 29 deletions
+1 -1
View File
@@ -1562,7 +1562,7 @@ fn bond_with_no_staked_value() {
.nominate(false)
.minimum_validator_count(1)
.build(), || {
// Can't bond with 1
// Can't bond with 1
assert_noop!(
Staking::bond(Origin::signed(1), 2, 1, RewardDestination::Controller),
"can not bond with value less than minimum balance"