Skip to content

fix: unmarshal comment_options extensions from condenser API#9

Merged
ety001 merged 1 commit into
masterfrom
fix/comment-options-extension-unmarshal
Jun 11, 2026
Merged

fix: unmarshal comment_options extensions from condenser API#9
ety001 merged 1 commit into
masterfrom
fix/comment-options-extension-unmarshal

Conversation

@ety001

@ety001 ety001 commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Add CommentOptionsExtension.UnmarshalJSON for condenser_api [tag, value] static_variant tuples
  • Add tests for extension parsing and full comment_options operation JSON

Motivation

GetOpsInBlock fails on blocks with beneficiary extensions (e.g. block 61570519):
cannot unmarshal array into Go struct field protocol.CommentOptionsOperation.extensions

Test plan

  • go test ./protocol/ -run CommentOptions

condenser_api returns comment_options extensions as [tag, value]
static_variant tuples. Add CommentOptionsExtension.UnmarshalJSON so
GetOpsInBlock can parse blocks containing beneficiary extensions.
@ety001 ety001 merged commit 9d3de29 into master Jun 11, 2026
3 checks passed
@ety001 ety001 deleted the fix/comment-options-extension-unmarshal branch June 11, 2026 08:12
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