diff --git a/substrate/node/runtime/src/lib.rs b/substrate/node/runtime/src/lib.rs index 8b5a6530d0..3bfb86c8cf 100644 --- a/substrate/node/runtime/src/lib.rs +++ b/substrate/node/runtime/src/lib.rs @@ -70,7 +70,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. spec_version: 113, - impl_version: 113, + impl_version: 114, apis: RUNTIME_API_VERSIONS, }; diff --git a/substrate/srml/collective/src/lib.rs b/substrate/srml/collective/src/lib.rs index 153a5df00a..5f2a0ef281 100644 --- a/substrate/srml/collective/src/lib.rs +++ b/substrate/srml/collective/src/lib.rs @@ -62,7 +62,7 @@ pub enum RawOrigin { } /// Origin for the collective module. -pub type Origin = RawOrigin<::AccountId, I>; +pub type Origin = RawOrigin<::AccountId, I>; #[derive(PartialEq, Eq, Clone, Encode, Decode)] #[cfg_attr(feature = "std", derive(Debug))] @@ -97,13 +97,10 @@ decl_storage! { } decl_event!( - pub enum Event where + pub enum Event where ::Hash, ::AccountId, - Phantom = rstd::marker::PhantomData { - /// Dummy to manage the fact we have instancing. - _Phantom(Phantom), /// A motion (given hash) has been proposed (by given account) with a threshold (given /// `MemberCount`). Proposed(AccountId, ProposalIndex, Hash, MemberCount), @@ -420,6 +417,11 @@ mod tests { type Proposal = Call; type Event = Event; } + impl Trait for Test { + type Origin = Origin; + type Proposal = Call; + type Event = Event; + } pub type Block = primitives::generic::Block; pub type UncheckedExtrinsic = primitives::generic::UncheckedMortalCompactExtrinsic; @@ -432,6 +434,7 @@ mod tests { { System: system::{Module, Call, Event}, Collective: collective::::{Module, Call, Event, Origin, Config}, + DefaultCollective: collective::{Module, Call, Event, Origin, Config}, } ); @@ -441,6 +444,7 @@ mod tests { members: vec![1, 2, 3], phantom: Default::default(), }), + collective: None, }.build_storage().unwrap().0.into() }