Fix: stash account reaped when ledger.active == ED (#8170)

* do not reap account when active == ed

* add tests + refactor
This commit is contained in:
Guillaume Thiolliere
2021-02-22 17:46:45 +01:00
committed by GitHub
parent b2f393945a
commit 115dcd81dc
4 changed files with 42 additions and 5 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ macro_rules! assert_eq_uvec {
macro_rules! __assert_eq_uvec {
( $x:expr, $y:expr ) => {
$x.iter().for_each(|e| {
if !$y.contains(e) { panic!(format!("vectors not equal: {:?} != {:?}", $x, $y)); }
if !$y.contains(e) { panic!("vectors not equal: {:?} != {:?}", $x, $y); }
});
}
}