From df562db982431960bddf22b6914492a3e48469fa Mon Sep 17 00:00:00 2001 From: Daniel Blanco Parla Date: Wed, 18 Dec 2024 17:07:25 +0100 Subject: [PATCH] fix(upgrade-runtime-controller): replace usage of Pallet::members with Members::get for consistency --- precompiles/upgrade-runtime-controller/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/precompiles/upgrade-runtime-controller/src/lib.rs b/precompiles/upgrade-runtime-controller/src/lib.rs index 927186a..3073fb3 100644 --- a/precompiles/upgrade-runtime-controller/src/lib.rs +++ b/precompiles/upgrade-runtime-controller/src/lib.rs @@ -25,7 +25,8 @@ mod tests; use core::str::FromStr; use fp_evm::PrecompileHandle; -use frame_support::dispatch::{Dispatchable, GetDispatchInfo, PostDispatchInfo}; +use frame_support::dispatch::{GetDispatchInfo, PostDispatchInfo}; +use sp_runtime::traits::Dispatchable; use frame_support::parameter_types; use frame_support::storage::types::{StorageValue, ValueQuery}; @@ -249,7 +250,7 @@ where let member_id: H160 = member.into(); let old_members = - pallet_collective::Pallet::::members(); + pallet_collective::Members::::get(); if old_members.contains(&member_id.into()) { return Err(revert("already a member")); @@ -299,7 +300,7 @@ where let member_account = ::AccountId::from(member_id); let old_members = - pallet_collective::Pallet::::members(); + pallet_collective::Members::::get(); if !old_members.contains(&member_account) { return Err(revert("not a member")); @@ -336,7 +337,7 @@ where ) -> EvmResult> { handle.record_cost(RuntimeHelper::::db_read_gas_cost())?; - let members = pallet_collective::Pallet::::members(); + let members = pallet_collective::Members::::get(); Ok(members .iter()