From 8f95a3afbdab7278de97463e48afa4f4a42640e0 Mon Sep 17 00:00:00 2001 From: Muharem Ismailov Date: Fri, 19 May 2023 18:16:58 +0200 Subject: [PATCH] Core-Fellowship: fix origin typo (#14179) --- frame/core-fellowship/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/core-fellowship/src/lib.rs b/frame/core-fellowship/src/lib.rs index 93d2302448989..97603fcc6ce9e 100644 --- a/frame/core-fellowship/src/lib.rs +++ b/frame/core-fellowship/src/lib.rs @@ -368,7 +368,7 @@ pub mod pallet { who: T::AccountId, at_rank: RankOf, ) -> DispatchResult { - match T::PromoteOrigin::try_origin(origin) { + match T::ApproveOrigin::try_origin(origin) { Ok(allow_rank) => ensure!(allow_rank >= at_rank, Error::::NoPermission), Err(origin) => ensure_root(origin)?, }