diff --git a/pallet/ecdsa-authority/src/lib.rs b/pallet/ecdsa-authority/src/lib.rs index 03d412c44..310c0fd23 100644 --- a/pallet/ecdsa-authority/src/lib.rs +++ b/pallet/ecdsa-authority/src/lib.rs @@ -403,6 +403,7 @@ pub mod pallet { if Self::check_threshold(collected.len() as _, authorities.len() as _) { >::kill(); + >::kill(); let (commitment, message, collected) = new_message_root_to_sign; diff --git a/pallet/ecdsa-authority/src/tests.rs b/pallet/ecdsa-authority/src/tests.rs index c7c2b3453..21ee91522 100644 --- a/pallet/ecdsa-authority/src/tests.rs +++ b/pallet/ecdsa-authority/src/tests.rs @@ -474,6 +474,8 @@ fn submit_new_message_root_signature() { signatures: vec![(a_1, s_1), (a_2, s_2)] }] ); + assert!(EcdsaAuthority::new_message_root_to_sign().is_none()); + assert!(EcdsaAuthority::previous_message_root().is_none()); }); }