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

Commit

Permalink
Core-Fellowship: fix origin typo (#14179)
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem authored and gpestana committed May 27, 2023
1 parent bda4fbb commit 1742221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/core-fellowship/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ pub mod pallet {
who: T::AccountId,
at_rank: RankOf<T, I>,
) -> DispatchResult {
match T::PromoteOrigin::try_origin(origin) {
match T::ApproveOrigin::try_origin(origin) {
Ok(allow_rank) => ensure!(allow_rank >= at_rank, Error::<T, I>::NoPermission),
Err(origin) => ensure_root(origin)?,
}
Expand Down

0 comments on commit 1742221

Please sign in to comment.