Make deposit_event work with none generic events (#1309)

* Make `deposit_event` work with none generic events

`fn deposit_event() = default` will now be used for none generic events
`fn deposit_event<T>() = default` is now for generic events.

* Update wasm files

* Fixes some spelling mistakes

* Update wasm and fix new module
This commit is contained in:
Bastian Köcher
2018-12-22 17:37:05 +01:00
committed by Gav Wood
parent 031826ebdb
commit d15cc63370
17 changed files with 39 additions and 19 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ pub trait Trait: consensus::Trait + system::Trait {
decl_module! {
// Simple declaration of the `Module` type. Lets the macro know what its working on.
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
fn deposit_event() = default;
fn deposit_event<T>() = default;
fn sudo(origin, proposal: Box<T::Proposal>) {
// This is a public call, so we ensure that the origin is some signed account.