mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 14:01:06 +00:00
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:
@@ -98,7 +98,9 @@ decl_module! {
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
|
||||
/// Deposit one of this module's events by using the default implementation.
|
||||
/// It is also possible to provide a custom implementation.
|
||||
fn deposit_event() = default;
|
||||
/// For non-generic events, the generic parameter just needs to be dropped, so that it
|
||||
/// looks like: `fn deposit_event() = default;`.
|
||||
fn deposit_event<T>() = default;
|
||||
/// This is your public interface. Be extremely careful.
|
||||
/// This is just a simple example of how to interact with the module from the external
|
||||
/// world.
|
||||
|
||||
Reference in New Issue
Block a user