From a39591d46060166a61d05154545fbbbc73ec3008 Mon Sep 17 00:00:00 2001 From: kylezs Date: Tue, 17 Oct 2023 23:52:59 +1100 Subject: [PATCH] chore: remove unnecessary event (#4127) --- state-chain/pallets/cf-governance/src/lib.rs | 3 --- state-chain/pallets/cf-governance/src/tests.rs | 4 ---- 2 files changed, 7 deletions(-) diff --git a/state-chain/pallets/cf-governance/src/lib.rs b/state-chain/pallets/cf-governance/src/lib.rs index eed42bcac1..dcfa5ee5dc 100644 --- a/state-chain/pallets/cf-governance/src/lib.rs +++ b/state-chain/pallets/cf-governance/src/lib.rs @@ -203,8 +203,6 @@ pub mod pallet { FailedExecution(DispatchError), /// The decode of call failed \[proposal_id\] DecodeOfCallFailed(ProposalId), - /// The upgrade conditions for a runtime upgrade were satisfied - UpgradeConditionsSatisfied, /// Call executed by GovKey GovKeyCallExecuted { call_hash: GovCallHash }, /// CallHash whitelisted by the GovKey @@ -319,7 +317,6 @@ pub mod pallet { ); } - Self::deposit_event(Event::UpgradeConditionsSatisfied); T::RuntimeUpgrade::do_upgrade(code) } diff --git a/state-chain/pallets/cf-governance/src/tests.rs b/state-chain/pallets/cf-governance/src/tests.rs index c19173fa95..801812bde9 100644 --- a/state-chain/pallets/cf-governance/src/tests.rs +++ b/state-chain/pallets/cf-governance/src/tests.rs @@ -229,10 +229,6 @@ fn upgrade_runtime_successfully() { None, DUMMY_WASM_BLOB )); - assert_eq!( - last_event::(), - crate::mock::RuntimeEvent::Governance(crate::Event::UpgradeConditionsSatisfied), - ); }); }