pallet-core-fellowship: import an unimported member on approve (#2883)

To align with the documentation of the approve call, we import an
unimported member on approval.

No changes have been made to the benchmarks as they already cover the
worst-case scenario.
This commit is contained in:
Muharem authored and GitHub committed 2024-01-09 12:36:39 +01:00
1 parent 0ff3f4d3af
commit d288c81b96
3 files changed
+35 -8

No files matched your search

@@ -378,3 +378,11 @@ fn active_changing_get_salary_works() {
}
});
}
#[test]
fn approve_imports_not_tracked_member() {
new_test_ext().execute_with(|| {
set_rank(10, 5);
assert_ok!(CoreFellowship::approve(signed(5), 10, 5));
});
}