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

eth: bugfix. ensure Bytes are reset during unmarshal #179

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

ryandotsmith
Copy link
Member

Since the Tx is reused during batch processing, it's possible for the value to accumulate data from prior use. The Bytes.Write function correctly resized the underlying slice prior to decoding but the UnmarshalJSON did not. Now it does.

Since the Tx is reused during batch processing, it's possible for the
value to accumulate data from prior use. The Bytes.Write function
correctly resized the underlying slice prior to decoding but the
UnmarshalJSON did not. Now it does.
@ryandotsmith ryandotsmith self-assigned this Oct 12, 2023
@ryandotsmith ryandotsmith merged commit fd46b4a into main Oct 12, 2023
2 checks passed
@ryandotsmith ryandotsmith deleted the r/fix-bytes-reuse branch October 12, 2023 19:18
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.

1 participant