mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Update polkadot to the latest master (#251)
* update cumulus to latest polkadot * s/Trait/Config To be more consistent with the new naming. * Update Cargo.lock * fix network tests
This commit is contained in:
@@ -23,20 +23,20 @@ use frame_support::{decl_module, decl_storage, traits::Get};
|
||||
use cumulus_primitives::ParaId;
|
||||
|
||||
/// Configuration trait of this pallet.
|
||||
pub trait Trait: frame_system::Trait {}
|
||||
pub trait Config: frame_system::Config {}
|
||||
|
||||
impl<T: Trait> Get<ParaId> for Module<T> {
|
||||
impl<T: Config> Get<ParaId> for Module<T> {
|
||||
fn get() -> ParaId {
|
||||
Self::parachain_id()
|
||||
}
|
||||
}
|
||||
|
||||
decl_storage! {
|
||||
trait Store for Module<T: Trait> as ParachainUpgrade {
|
||||
trait Store for Module<T: Config> as ParachainUpgrade {
|
||||
ParachainId get(fn parachain_id) config(): ParaId = 100.into();
|
||||
}
|
||||
}
|
||||
|
||||
decl_module! {
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin {}
|
||||
pub struct Module<T: Config> for enum Call where origin: T::Origin {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user