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

fix: state.stateObject.empty() with extra payload #62

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Oct 24, 2024

Why this should be merged

Fixes invariant broken by introduction of types.StateAccountExtra.

How this works

state.stateObject.empty() now also requires that the underlying account's Extra field carries the zero value if a type is registered, or is itself nil.

How this was tested

New unit test.

@ARR4N ARR4N marked this pull request as ready for review October 24, 2024 06:29
@ARR4N ARR4N requested review from a team, darioush, ceyonur and michaelkaplan13 and removed request for a team October 24, 2024 06:29
@ARR4N ARR4N enabled auto-merge (squash) October 27, 2024 22:46
@ARR4N ARR4N merged commit cb7eb89 into main Oct 28, 2024
3 checks passed
@ARR4N ARR4N deleted the arr4n/state-object-empty branch October 28, 2024 18:34
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.

2 participants