Skip to content

Add Invalid params error detail helper - #250

Merged
wangdayong228 merged 1 commit into
Conflux-Chain:masterfrom
wangdayong228:feat/rpc-invalid-params-detail
Aug 6, 2026
Merged

wangdayong228 merged 1 commit into
Conflux-Chain:masterfrom
wangdayong228:feat/rpc-invalid-params-detail

Conversation

@wangdayong228

@wangdayong228 wangdayong228 commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add RpcError.InvalidParamsDetail to extract -32602 error details across legacy and current Core RPC formats
  • handle details from both message and string data, including an extra JSON-string encoding layer
  • document usage and cover compatibility cases with table-driven tests

Test plan

  • go test ./utils -run TestRpcErrorInvalidParamsDetail -count=1
  • go test ./utils -count=1
  • go build ./...
  • go test ./... -count=1

This change is Reviewable

Support extracting parameter error details across legacy and current Core RPC response formats.
@wangdayong228
wangdayong228 requested review from Pana and wanliqun August 5, 2026 09:41

@Pana Pana left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Pana reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on wanliqun).

@wangdayong228
wangdayong228 merged commit b07a3dd into Conflux-Chain:master Aug 6, 2026
1 check passed
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