Skip to content

Commit

Permalink
chore: remove unnecessary event (#4127)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs authored Oct 17, 2023
1 parent 4789131 commit a39591d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions state-chain/pallets/cf-governance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -319,7 +317,6 @@ pub mod pallet {
);
}

Self::deposit_event(Event::UpgradeConditionsSatisfied);
T::RuntimeUpgrade::do_upgrade(code)
}

Expand Down
4 changes: 0 additions & 4 deletions state-chain/pallets/cf-governance/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,6 @@ fn upgrade_runtime_successfully() {
None,
DUMMY_WASM_BLOB
));
assert_eq!(
last_event::<Test>(),
crate::mock::RuntimeEvent::Governance(crate::Event::UpgradeConditionsSatisfied),
);
});
}

Expand Down

0 comments on commit a39591d

Please sign in to comment.