Skip to content

Commit

Permalink
chore(pallets/communities): split governance functionalities
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Nov 19, 2023
1 parent 22c9f9a commit 9bd25c2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pallets/communities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ pub mod pallet {
#[pallet::getter(fn challenge_for)]
pub(super) type Challenges<T> =
StorageDoubleMap<_, Blake2_128Concat, CommunityIdOf<T>, Blake2_128Concat, ChallengeRegistrarIdOf<T>, ()>;

// Pallets use events to inform users when important changes are made.
// https://docs.substrate.io/main-docs/build/events-errors/
#[pallet::event]
Expand Down Expand Up @@ -454,11 +455,7 @@ pub mod pallet {

///
#[pallet::call_index(4)]
pub fn vote(
origin: OriginFor<T>,
#[pallet::compact] _poll_index: PollIndexOf<T>,
_vote: VoteOf<T>,
) -> DispatchResult {
pub fn vote(origin: OriginFor<T>, _community_id: T::CommunityId, _vote: VoteOf<T>) -> DispatchResult {
let _ = ensure_signed(origin)?;
// let poll_index = Self::get_poll_index(&community_id);

Expand Down

0 comments on commit 9bd25c2

Please sign in to comment.