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 display support for events #513

Merged
merged 10 commits into from Oct 16, 2021

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Oct 16, 2021

Motivation

Close #507

Solution

introduce EthDisplay proc macro that generates std::fmt::Display for structs, which works similar to EthEvent. It parses the struct's AST and applies convenient formatters.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@gakonst gakonst merged commit bef7960 into gakonst:master Oct 16, 2021
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.

Auto impl display for Abigen Event Structs
2 participants