Skip to content

accounts/abi/bind: re-export event signature mismatch errors - #34868

Merged
MariusVanDerWijden merged 2 commits into
ethereum:masterfrom
tenderdeve:fix/34075-event-signature-mismatch-sentinel
May 5, 2026
Merged

accounts/abi/bind: re-export event signature mismatch errors#34868
MariusVanDerWijden merged 2 commits into
ethereum:masterfrom
tenderdeve:fix/34075-event-signature-mismatch-sentinel

Conversation

@tenderdeve

Copy link
Copy Markdown
Contributor

The bind/v2 package already defines ErrEventSignatureMismatch and ErrNoEventSignature, and generated code references them correctly. However, callers importing the top-level bind package have no way to use errors.Is without also importing bind/v2 directly. This re-exports both sentinels through the compatibility shim in bind/old.go, following the same pattern used for ErrNoCode and friends.

Fixes #34075

…Signature

Expose the event-unpacking sentinel errors from bind/v2 through the
top-level bind package so callers can use errors.Is without importing
the v2 sub-package directly.

Fixes ethereum#34075
@tenderdeve
tenderdeve marked this pull request as ready for review May 5, 2026 09:10
Comment thread accounts/abi/bind/old.go Outdated
@MariusVanDerWijden MariusVanDerWijden added this to the 1.17.3 milestone May 5, 2026
@MariusVanDerWijden
MariusVanDerWijden merged commit d5edb80 into ethereum:master May 5, 2026
3 checks passed
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 v2: expose package-level ErrEventSignatureMismatch for event unpacking errors

2 participants