Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f32f96e

Browse files
committed
fix
1 parent 4849f8e commit f32f96e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frame/democracy/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,8 @@ impl<T: Config> Pallet<T> {
16521652
debug_assert!(err_amount.is_zero());
16531653
Self::deposit_event(Event::<T>::PreimageUsed(proposal_hash, provider, deposit));
16541654

1655-
let res = proposal.dispatch(frame_system::RawOrigin::Root.into());
1655+
let res = proposal.dispatch(frame_system::RawOrigin::Root.into())
1656+
.map(|_| ()).map_err(|e| e.error);
16561657
Self::deposit_event(Event::<T>::Executed(index, res));
16571658

16581659
Ok(())

0 commit comments

Comments
 (0)