From 7fdbb5260760501ea6362a839cc27467c8ed8326 Mon Sep 17 00:00:00 2001 From: Edwin Wang Date: Sat, 21 Aug 2021 16:04:28 +0800 Subject: [PATCH] enable transaction payment --- node/service/src/chain_spec/bifrost.rs | 2 +- runtime/bifrost/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/node/service/src/chain_spec/bifrost.rs b/node/service/src/chain_spec/bifrost.rs index da5d406f4..bdca15fbc 100644 --- a/node/service/src/chain_spec/bifrost.rs +++ b/node/service/src/chain_spec/bifrost.rs @@ -67,7 +67,7 @@ pub fn bifrost_genesis( council_membership: Default::default(), technical_membership: Default::default(), treasury: Default::default(), - elections: Default::default(), + phragmen_election: Default::default(), sudo: SudoConfig { key: root_key.clone() }, parachain_info: ParachainInfoConfig { parachain_id: id }, collator_selection: CollatorSelectionConfig { diff --git a/runtime/bifrost/src/lib.rs b/runtime/bifrost/src/lib.rs index afa24ef5a..4b5f2774d 100644 --- a/runtime/bifrost/src/lib.rs +++ b/runtime/bifrost/src/lib.rs @@ -516,7 +516,7 @@ impl pallet_tips::Config for Runtime { type TipCountdown = TipCountdown; type TipFindersFee = TipFindersFee; type TipReportDepositBase = TipReportDepositBase; - type Tippers = Elections; + type Tippers = PhragmenElection; type WeightInfo = pallet_tips::weights::SubstrateWeight; } @@ -871,7 +871,7 @@ construct_runtime! { Democracy: pallet_democracy::{Pallet, Call, Storage, Config, Event} = 30, Council: pallet_collective::::{Pallet, Call, Storage, Origin, Event, Config} = 31, TechnicalCommittee: pallet_collective::::{Pallet, Call, Storage, Origin, Event, Config} = 32, - Elections: pallet_elections_phragmen::{Pallet, Call, Storage, Event, Config} = 33, + PhragmenElection: pallet_elections_phragmen::{Pallet, Call, Storage, Event, Config} = 33, CouncilMembership: pallet_membership::::{Pallet, Call, Storage, Event, Config} = 34, TechnicalMembership: pallet_membership::::{Pallet, Call, Storage, Event, Config} = 35, @@ -935,7 +935,7 @@ pub type SignedExtra = ( frame_system::CheckEra, frame_system::CheckNonce, frame_system::CheckWeight, - // pallet_transaction_payment::ChargeTransactionPayment, + pallet_transaction_payment::ChargeTransactionPayment, ); /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = generic::UncheckedExtrinsic;