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 authored and GitHub committed 2021-02-22 16:46:45 +00:00
1 parent b2f393945a
commit 115dcd81dc
4 files changed
+42 -5

No files matched your search

+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); }
});
}
}