mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 18:25:41 +00:00
include dispatch result in the Executed event (#9315)
* include dispatch result in the Executed event * fix * trigger CI
This commit is contained in:
@@ -512,8 +512,8 @@ pub mod pallet {
|
||||
NotPassed(ReferendumIndex),
|
||||
/// A referendum has been cancelled. \[ref_index\]
|
||||
Cancelled(ReferendumIndex),
|
||||
/// A proposal has been enacted. \[ref_index, is_ok\]
|
||||
Executed(ReferendumIndex, bool),
|
||||
/// A proposal has been enacted. \[ref_index, result\]
|
||||
Executed(ReferendumIndex, DispatchResult),
|
||||
/// An account has delegated their vote to another account. \[who, target\]
|
||||
Delegated(T::AccountId, T::AccountId),
|
||||
/// An \[account\] has cancelled a previous delegation operation.
|
||||
@@ -1654,8 +1654,9 @@ impl<T: Config> Pallet<T> {
|
||||
debug_assert!(err_amount.is_zero());
|
||||
Self::deposit_event(Event::<T>::PreimageUsed(proposal_hash, provider, deposit));
|
||||
|
||||
let ok = proposal.dispatch(frame_system::RawOrigin::Root.into()).is_ok();
|
||||
Self::deposit_event(Event::<T>::Executed(index, ok));
|
||||
let res = proposal.dispatch(frame_system::RawOrigin::Root.into())
|
||||
.map(|_| ()).map_err(|e| e.error);
|
||||
Self::deposit_event(Event::<T>::Executed(index, res));
|
||||
|
||||
Ok(())
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user