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
@@ -62,7 +62,7 @@ type AssetId = u32;
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;
/// Issue a new class of fungible assets. There are, and will only ever be, `total`
/// such assets and they'll all belong to the `origin` initially. It will have an
/// identifier `AssetId` instance: this will be specified in the `Issued` event.