Skip to content

fix(jsonrpc-alt): fix type mismatch in display field response#25787

Merged
ebmifa merged 1 commit intomainfrom
ebmifa/fix-jsonrpc-display-type-mismatch
Mar 10, 2026
Merged

fix(jsonrpc-alt): fix type mismatch in display field response#25787
ebmifa merged 1 commit intomainfrom
ebmifa/fix-jsonrpc-display-type-mismatch

Conversation

@ebmifa
Copy link
Copy Markdown
Contributor

@ebmifa ebmifa commented Mar 10, 2026

Summary

  • Fixes build failure introduced by registry/display: JSONRPC-alt integration #25359 (Display v2 JSONRPC-alt integration)
  • display_fields return type changed from BTreeMap<String, Result<String>> to BTreeMap<String, Result<Json>>, but line 194 still wrapped the value in Json::String(value) causing a mismatched types compiler error
  • Fix: use value directly instead of wrapping in Json::String()

Test plan

🤖 Generated with Claude Code

`display_fields` now returns `Json` values (not `String`) after the
Display v2 integration in #25359, but the call site still wrapped the
value in `Json::String(...)`, causing a build failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ebmifa ebmifa requested a review from a team as a code owner March 10, 2026 21:35
@ebmifa ebmifa temporarily deployed to sui-typescript-aws-kms-test-env March 10, 2026 21:36 — with GitHub Actions Inactive
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sui-docs Ready Ready Preview, Comment Mar 10, 2026 9:37pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
multisig-toolkit Ignored Ignored Preview Mar 10, 2026 9:37pm
sui-kiosk Ignored Ignored Preview Mar 10, 2026 9:37pm

Request Review

@ebmifa ebmifa enabled auto-merge (squash) March 10, 2026 21:46
@ebmifa ebmifa merged commit 273f939 into main Mar 10, 2026
59 checks passed
@ebmifa ebmifa deleted the ebmifa/fix-jsonrpc-display-type-mismatch branch March 10, 2026 21:56
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