Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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