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()