Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add derive macro "IntoEvent" #161

Merged
merged 7 commits into from
Mar 2, 2022

Conversation

loloicci
Copy link
Contributor

Description

This PR adds a derive macro IntoEvent to package/std. This macro helps make an event from a structure. When a structure type is defined with IntoEvent, this macro makes a cast function from the structure to Event.
Added code are the same as loloicci#1

Closes #143

Types of changes

  • Bug fix (changes which fixes an issue)
  • New feature (changes which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ETC (build, ci, docs, perf, refactor, style, test)

Checklist

@loloicci loloicci self-assigned this Feb 28, 2022
@loloicci loloicci merged commit 646b24e into Finschia:main Mar 2, 2022
@brew0722 brew0722 mentioned this pull request Mar 4, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the event usage of smart contract
3 participants