Skip to content

core/types: test invalid log JSON data - #35663

Closed
Amlan2006 wants to merge 1 commit into
ethereum:masterfrom
Amlan2006:core-types-log-invalid-data-test
Closed

core/types: test invalid log JSON data#35663
Amlan2006 wants to merge 1 commit into
ethereum:masterfrom
Amlan2006:core-types-log-invalid-data-test

Conversation

@Amlan2006

Copy link
Copy Markdown

Adds four cases to TestUnmarshalLog to verify rejection of invalid data fields:

  • Explicit null.
  • Odd-length hex ("0x0").
  • Invalid hex characters ("0xzz").
  • Missing 0x prefix ("1234").

Each case checks the expected decoding error. No production code changes.

Validation:

  • Passed: go test ./core/types -run '^TestUnmarshalLog$' -count=1

@rjl493456442

Copy link
Copy Markdown
Member

It's more the tests for the JSON unmarshaller itself. I don't think it's necessary

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