Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pifragile committed Feb 26, 2024
1 parent a74b553 commit 8e02659
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions communities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub mod pallet {
location: Location,
) -> DispatchResultWithPostInfo {
T::TrustableForNonDestructiveAction::ensure_origin(origin)?;
Self::do_add_loaction(cid, location)
Self::do_add_location(cid, location)
}

/// Remove an existing meetup `location` from the community with `cid`.
Expand Down Expand Up @@ -405,7 +405,7 @@ pub mod pallet {
}

impl<T: Config> Pallet<T> {
pub fn do_add_loaction(
pub fn do_add_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 @@ -482,7 +482,7 @@ pub mod pallet {

match proposal.action.clone() {
ProposalAction::AddLocation(cid, location) => {
<encointer_communities::Pallet<T>>::do_add_loaction(cid, location)?;
<encointer_communities::Pallet<T>>::do_add_location(cid, location)?;
},
ProposalAction::RemoveLocation(cid, location) => {
<encointer_communities::Pallet<T>>::do_remove_loaction(cid, location)?;
Expand Down
2 changes: 1 addition & 1 deletion democracy/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ fn enact_remove_location_works() {
let cid = create_cid();
let alice = alice();
let location = Location { lat: Degree::from_num(10.0), lon: Degree::from_num(10.0) };
let _ = EncointerCommunities::do_add_loaction(cid, location);
let _ = EncointerCommunities::do_add_location(cid, location);
let proposal_action = ProposalAction::RemoveLocation(cid, location);
assert_ok!(EncointerDemocracy::submit_proposal(
RuntimeOrigin::signed(alice.clone()),
Expand Down

0 comments on commit 8e02659

Please sign in to comment.