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

fix: make EthEvent abi attribute work for tuple inputs #229

Merged
merged 3 commits into from
Mar 16, 2021

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Mar 15, 2021

Motivation

In #227 I mentioned a limitation in parser when the provided attribute contains tuples: (#[ethevent(abi = "Event((string,address),string)")] which resulted in a failed derivation of the EthEvent trait.

Solution

This has been fixed by adding an attempt to parse the abi input as tuple and validated by a new test

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, awesome.

@gakonst gakonst merged commit 0c18f9b into gakonst:master Mar 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.

2 participants