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

accounts/abi: fix resolving single struct argument #23573

Merged
merged 1 commit into from Sep 22, 2021

Conversation

rjl493456442
Copy link
Member

@rjl493456442 rjl493456442 commented Sep 14, 2021

Supersedes #23557
Fixes #23551

This PR fixes an issue in abi package for resolving single struct argument. More specifically, after resolving values from the binary stream, these values need to be assigned to the golang container. And usually the golang receiver is a struct in order to contain multiple return values. But if the return value is a single struct then the first field of the receiver struct should be used as the inner receiver. Previously this case is skipped somehow and in this PR it's fixed.

Copy link
Member

@MariusVanDerWijden MariusVanDerWijden left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@gballet gballet left a comment

Choose a reason for hiding this comment

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

LGTM

@gballet gballet added this to the 1.10.9 milestone Sep 22, 2021
@gballet gballet merged commit 57a3fab into ethereum:master Sep 22, 2021
yongjun925 pushed a commit to DODOEX/go-ethereum that referenced this pull request Dec 3, 2022
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.

abigen cannot parse events with struct arguments
3 participants