You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubenumPostReaction{/// No any reactionNonReacton,/// Thumb up to a postThumbUp,/// Thumb down to a postThumbDown,/// Like a postLike,}
Now, if anyone wanted to replace the application-level semantics of either variant to something else, such as Like to Hate, then they would either have to accept a naming conflict with the runtime or fork the module. More importantly, if they wanted to increase the number of reaction types, they would have to fork the module. We can treat this a bit more generally by just having the reaction encoded as some integer like type, and accept the number of different reactions accepted as a trait configuration for the module. This would allow for forkless customization without any penalty in clarity of performance.
The text was updated successfully, but these errors were encountered:
bedeho
transferred this issue from Joystream/substrate-forum-module
Jun 23, 2020
Currently, we have
Now, if anyone wanted to replace the application-level semantics of either variant to something else, such as
Like
toHate
, then they would either have to accept a naming conflict with the runtime or fork the module. More importantly, if they wanted to increase the number of reaction types, they would have to fork the module. We can treat this a bit more generally by just having the reaction encoded as some integer like type, and accept the number of different reactions accepted as a trait configuration for the module. This would allow for forkless customization without any penalty in clarity of performance.The text was updated successfully, but these errors were encountered: