Implement From module Call for outer Call (#3006)

* Implement `From` module `Call` for outer `Call`

* Fixes compilation and add test
This commit is contained in:
Bastian Köcher
2019-07-03 20:05:48 +02:00
committed by GitHub
parent fa535da069
commit 5dc8792d8f
2 changed files with 30 additions and 15 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ pub const DEFAULT_EMERGENCY_VOTING_PERIOD: u32 = 0;
pub const DEFAULT_COOLOFF_PERIOD: u32 = 0;
pub trait Trait: system::Trait + Sized {
type Proposal: Parameter + Dispatchable<Origin=Self::Origin> + IsSubType<Module<Self>>;
type Proposal: Parameter + Dispatchable<Origin=Self::Origin> + IsSubType<Module<Self>, Self>;
type Event: From<Event<Self>> + Into<<Self as system::Trait>::Event>;
/// Currency type for this module.