-
Notifications
You must be signed in to change notification settings - Fork 469
Closed
Labels
A-ink_lang[ink_lang] Work item[ink_lang] Work itemB-enhancementNew feature or requestNew feature or requestC-discussionAn issue for discussion for a given topic.An issue for discussion for a given topic.
Description
How about allowing to manually specify the signature topic? If for whatever reason, the exact definition of types can not be used, we can at least allow to specify the topic manually. We are doing that with custom selectors, why not do it with the event signatures?
Originally posted by @SkymanOne in #1827 (comment)
How it might look:
#[derive(ink::Event)]
#[ink(signature_topic = 0x000...]
pub struct Event {}
The type of the signature topic should be [u8; 32]
, although we may need to consider making this configurable to Environment::Hash
.
Metadata
Metadata
Assignees
Labels
A-ink_lang[ink_lang] Work item[ink_lang] Work itemB-enhancementNew feature or requestNew feature or requestC-discussionAn issue for discussion for a given topic.An issue for discussion for a given topic.