mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-23 17:45:46 +00:00
Conpanion for Substrate#7127 (#1865)
* Conpanion for Substrate#7127 * Use sp_session::OneSessionHandler * . * Fix pallet_session::OneSessionHandler * OneSessionHandler is in frame_support now * "Update Substrate" Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -31,7 +31,7 @@ use primitives::v1::{BlockNumber, ValidatorId, AssignmentId};
|
||||
use sp_runtime::{Perquintill, Perbill, FixedPointNumber};
|
||||
use frame_system::limits;
|
||||
use frame_support::{
|
||||
parameter_types, traits::{Currency},
|
||||
parameter_types, traits::{Currency, OneSessionHandler},
|
||||
weights::{Weight, constants::WEIGHT_PER_SECOND, DispatchClass},
|
||||
};
|
||||
use pallet_transaction_payment::{TargetedFeeAdjustment, Multiplier};
|
||||
@@ -136,8 +136,7 @@ impl<T> sp_runtime::BoundToRuntimeAppPublic for ParachainSessionKeyPlaceholder<T
|
||||
type Public = ValidatorId;
|
||||
}
|
||||
|
||||
impl<T: pallet_session::Config>
|
||||
pallet_session::OneSessionHandler<T::AccountId> for ParachainSessionKeyPlaceholder<T>
|
||||
impl<T: pallet_session::Config> OneSessionHandler<T::AccountId> for ParachainSessionKeyPlaceholder<T>
|
||||
{
|
||||
type Key = ValidatorId;
|
||||
|
||||
@@ -165,8 +164,7 @@ impl<T> sp_runtime::BoundToRuntimeAppPublic for AssignmentSessionKeyPlaceholder<
|
||||
type Public = AssignmentId;
|
||||
}
|
||||
|
||||
impl<T: pallet_session::Config>
|
||||
pallet_session::OneSessionHandler<T::AccountId> for AssignmentSessionKeyPlaceholder<T>
|
||||
impl<T: pallet_session::Config> OneSessionHandler<T::AccountId> for AssignmentSessionKeyPlaceholder<T>
|
||||
{
|
||||
type Key = AssignmentId;
|
||||
|
||||
|
||||
@@ -271,7 +271,7 @@ mod tests {
|
||||
};
|
||||
use keyring::Sr25519Keyring;
|
||||
use runtime_parachains::{initializer, configuration, inclusion, session_info, scheduler, dmp, ump, hrmp};
|
||||
use pallet_session::OneSessionHandler;
|
||||
use frame_support::traits::OneSessionHandler;
|
||||
|
||||
impl_outer_origin! {
|
||||
pub enum Origin for Test {
|
||||
|
||||
Reference in New Issue
Block a user