Skip to content

Disallow indexed reference types in events when using ABIEncoderV2 (backported) #4920

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

Merged
merged 5 commits into from
Sep 10, 2018

Conversation

chriseth
Copy link
Contributor

@chriseth chriseth commented Sep 6, 2018

Backported version of #4820 with corrected "fixed" date.

Note that this PR merges into "develop_v0425"

@chriseth chriseth requested review from axic and leonardoalt September 6, 2018 15:04
@chriseth chriseth force-pushed the disallow_indexed_ref_v2_for_0_425 branch from f864688 to 9c64616 Compare September 6, 2018 15:07
{
"name": "EventStructWrongData",
"summary": "Using structs in events logged wrong data.",
"description": "If a struct is used in an event, the address of the struct is logged instead of the actual data.",
Copy link
Member

Choose a reason for hiding this comment

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

It seems like I forgot "indexed" here in the original commit..

Copy link
Contributor Author

@chriseth chriseth Sep 6, 2018

Choose a reason for hiding this comment

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

But wasn't that irrelevant? (see #4922 )

Copy link
Member

Choose a reason for hiding this comment

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

Ah right, this is without ABIEncoderV2.

@chriseth chriseth force-pushed the disallow_indexed_ref_v2_for_0_425 branch from 9c64616 to 9902221 Compare September 6, 2018 16:28
@chriseth
Copy link
Contributor Author

chriseth commented Sep 6, 2018

Rebased.

@chriseth chriseth changed the title Disallow indexed ref v2 for 0 425 Disallow indexed reference types in events when using ABIEncoderV2 (backported) Sep 6, 2018
@chriseth chriseth merged commit a1848ac into develop_v0425 Sep 10, 2018
@chriseth chriseth deleted the disallow_indexed_ref_v2_for_0_425 branch September 27, 2018 14:23
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.

3 participants