Skip to content

Fix/wrong omitempty in rpcerror#776

Merged
thiagodeev merged 4 commits intomainfrom
fix/wrong-omitempty-in-rpcerror
Aug 5, 2025
Merged

Fix/wrong omitempty in rpcerror#776
thiagodeev merged 4 commits intomainfrom
fix/wrong-omitempty-in-rpcerror

Conversation

@thiagodeev
Copy link
Copy Markdown
Collaborator

@thiagodeev thiagodeev commented Aug 5, 2025

Remove unused omitempty JSON tag from some types

Based on: #775

tarrencev and others added 2 commits August 1, 2025 15:20
Updated CompilationErrData, ContractErrData, TransactionExecErrData, and TraceStatusErrData to remove the omitempty tag from JSON struct fields, ensuring that these fields are always included in the serialized output.
@derrix060 derrix060 requested a review from Copilot August 5, 2025 12:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes omitempty JSON tags from RPC error data structures to ensure all fields are consistently included in error responses, regardless of whether they contain zero values.

  • Removed omitempty from JSON tags in error data structures
  • Updated ContractExecutionError to remove JSON tags entirely for some fields

@thiagodeev thiagodeev marked this pull request as ready for review August 5, 2025 14:36
@thiagodeev thiagodeev merged commit f6bcbd0 into main Aug 5, 2025
7 checks passed
@thiagodeev thiagodeev deleted the fix/wrong-omitempty-in-rpcerror branch August 5, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants