Add Clone bound to the Origin. (#4472)

This commit is contained in:
Tomasz Drwięga
2019-12-20 18:43:04 +01:00
committed by Bastian Köcher
parent 328563f8d4
commit 14a08d430c
+3 -1
View File
@@ -158,7 +158,9 @@ pub fn extrinsics_data_root<H: Hash>(xts: Vec<Vec<u8>>) -> H::Output {
pub trait Trait: 'static + Eq + Clone {
/// The aggregated `Origin` type used by dispatchable calls.
type Origin:
Into<Result<RawOrigin<Self::AccountId>, Self::Origin>> + From<RawOrigin<Self::AccountId>>;
Into<Result<RawOrigin<Self::AccountId>, Self::Origin>>
+ From<RawOrigin<Self::AccountId>>
+ Clone;
/// The aggregated `Call` type.
type Call: Debug;