-
Notifications
You must be signed in to change notification settings - Fork 474
Open
Labels
A-ink_lang[ink_lang] Work item[ink_lang] Work itemB-enhancementNew feature or requestNew feature or request
Description
Follow up from #1827 (comment).
Currently the Event derive does not support generics. We should consider adding support for generic event definitions, that would allow the event definition to be used across contracts with different Environment types e.g.
#[ink::event]
pub struct Transfer<E: ink::env::Environment> {
#[ink(topic)]
from: Option<E::AccountId>,
#[ink(topic)]
to: Option<E::AccountId>,
value: E::Balance,
}Metadata
Metadata
Assignees
Labels
A-ink_lang[ink_lang] Work item[ink_lang] Work itemB-enhancementNew feature or requestNew feature or request