Added an event for cancel_proposal (#11620)

* Added an event for cancel_proposal

* test
This commit is contained in:
Sergej Sakac authored and GitHub committed 2022-06-12 16:40:29 +00:00
1 parent dd2314a118
commit 973b6be6f5
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -537,6 +537,8 @@ pub mod pallet {
Voted { voter: T::AccountId, ref_index: ReferendumIndex, vote: AccountVote<BalanceOf<T>> },
/// An account has secconded a proposal
Seconded { seconder: T::AccountId, prop_index: PropIndex },
/// A proposal got canceled.
ProposalCanceled { prop_index: PropIndex },
}
#[pallet::error]
@@ -1277,6 +1279,7 @@ pub mod pallet {
}
}
Self::deposit_event(Event::<T>::ProposalCanceled { prop_index });
Ok(())
}
}