--- a/pallets/unique/src/eth/mod.rs +++ b/pallets/unique/src/eth/mod.rs @@ -23,10 +23,7 @@ use crate::Pallet; use pallet_common::{ - CollectionById, - dispatch::CollectionDispatch, - erc::{static_property::key, CollectionHelpersEvents}, - Pallet as PalletCommon, + CollectionById, dispatch::CollectionDispatch, erc::static_property::key, Pallet as PalletCommon, }; use pallet_evm::{account::CrossAccountId, OnMethodCall, PrecompileHandle, PrecompileResult}; use pallet_evm_coder_substrate::{dispatch_to_evm, SubstrateRecorder, WithRecorder}; --- a/runtime/common/config/pallets/scheduler.rs +++ b/runtime/common/config/pallets/scheduler.rs @@ -25,7 +25,7 @@ use codec::Decode; use crate::{ runtime_common::{scheduler::SchedulerPaymentExecutor, config::substrate::RuntimeBlockWeights}, - Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, OriginCaller, + Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, OriginCaller, Balances, }; use pallet_unique_scheduler::ScheduledEnsureOriginSuccess; use up_common::types::AccountId; --- a/runtime/common/scheduler.rs +++ b/runtime/common/scheduler.rs @@ -14,16 +14,19 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -use frame_support::dispatch::{GetDispatchInfo, PostDispatchInfo, DispatchInfo}; +use frame_support::{ + traits::NamedReservableCurrency, + dispatch::{GetDispatchInfo, PostDispatchInfo, DispatchInfo}, +}; use sp_runtime::{ traits::{Dispatchable, Applyable, Member}, generic::Era, transaction_validity::TransactionValidityError, - DispatchErrorWithPostInfo, + DispatchErrorWithPostInfo, DispatchError, }; use codec::Encode; -use crate::{Runtime, RuntimeCall, RuntimeOrigin}; -use up_common::types::AccountId; +use crate::{Runtime, RuntimeCall, RuntimeOrigin, Balances}; +use up_common::types::{AccountId, Balance}; use fp_self_contained::SelfContainedCall; use pallet_unique_scheduler::DispatchCall; use pallet_transaction_payment::ChargeTransactionPayment;