Skip to content

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
@ian0371 ian0371 mentioned this pull request Dec 31, 2024
9 tasks
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Jan 24, 2025
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