Skip to content
Snippets Groups Projects
Commit 8a578852 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#176): last certification does postpone expiry

parent b5d211c7
No related branches found
No related tags found
1 merge request!232Resolve "PromotedToSmith is issued even for Smith"
Pipeline #35614 passed
...@@ -455,7 +455,7 @@ impl<T: Config> Pallet<T> { ...@@ -455,7 +455,7 @@ impl<T: Config> Pallet<T> {
SmithStatus::Pending SmithStatus::Pending
}; };
if smith_meta.status == SmithStatus::Pending { if previous_status != SmithStatus::Smith {
// - postpone the expiration: a Pending smith cannot do anything but wait // - postpone the expiration: a Pending smith cannot do anything but wait
// this postponement is here to ease the process of becoming a smith // this postponement is here to ease the process of becoming a smith
let new_expires_on = let new_expires_on =
......
...@@ -586,7 +586,6 @@ fn certifying_an_online_smith() { ...@@ -586,7 +586,6 @@ fn certifying_an_online_smith() {
5 5
)); ));
// Smith can expire // Smith can expire
// TODO: test failing because expires_on is not postponed to session 8
assert_eq!( assert_eq!(
Smiths::<Runtime>::get(5), Smiths::<Runtime>::get(5),
Some(SmithMeta { Some(SmithMeta {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment