Skip to content

Commit

Permalink
fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Feb 26, 2024
1 parent 60094b3 commit cd08431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions communities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ pub mod pallet {
location: Location,
) -> DispatchResultWithPostInfo {
T::CommunityMaster::ensure_origin(origin)?;
Self::do_remove_loaction(cid, location)
Self::do_remove_location(cid, location)
}

/// Update the metadata of the community with `cid`.
Expand Down Expand Up @@ -446,7 +446,7 @@ impl<T: Config> Pallet<T> {
Ok(().into())
}

pub fn do_remove_loaction(
pub fn do_remove_location(
cid: CommunityIdentifier,
location: Location,
) -> DispatchResultWithPostInfo {
Expand Down
2 changes: 1 addition & 1 deletion democracy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ pub mod pallet {
<pallet_encointer_communities::Pallet<T>>::do_add_location(cid, location)?;
},
ProposalAction::RemoveLocation(cid, location) => {
<pallet_encointer_communities::Pallet<T>>::do_remove_loaction(cid, location)?;
<pallet_encointer_communities::Pallet<T>>::do_remove_location(cid, location)?;
},
ProposalAction::UpdateCommunityMetadata(cid, community_metadata) => {
<pallet_encointer_communities::Pallet<T>>::do_update_community_metadata(
Expand Down

0 comments on commit cd08431

Please sign in to comment.