Skip to content

jsonrpc-alt: gate address balance object fallback#26195

Open
Rifvckzie13 wants to merge 1 commit intoMystenLabs:mainfrom
Rifvckzie13:jsonrpc-alt-gate-ab-object-fallback
Open

jsonrpc-alt: gate address balance object fallback#26195
Rifvckzie13 wants to merge 1 commit intoMystenLabs:mainfrom
Rifvckzie13:jsonrpc-alt-gate-ab-object-fallback

Conversation

@Rifvckzie13
Copy link
Copy Markdown
Contributor

Description

Gate the masked address-balance object fallback on enable_coin_reservation_obj_refs so sui_getObject and sui_multiGetObjects match the existing suix_getCoins behavior when coin reservations are disabled.

Add a regression test that boots the alt stack with address balances enabled but coin reservations disabled, then verifies masked IDs stay unresolved across getCoins, getObject, and multiGetObjects.

Test plan

rustfmt --check crates/sui-indexer-alt-jsonrpc/src/data/address_balance_coins.rs crates/sui-indexer-alt-e2e-tests/tests/jsonrpc_address_balance_coin_tests.rs

CARGO_HOME=/tmp/cargo-home-sui-gate
CARGO_TARGET_DIR=/Users/zhenggenglin/Documents/project/sui/target
cargo test -p sui-indexer-alt-e2e-tests --test jsonrpc_address_balance_coin_tests --no-run --offline


Release notes

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • Indexing Framework:

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 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 Apr 10, 2026 8:17am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
multisig-toolkit Ignored Ignored Preview Apr 10, 2026 8:17am
sui-kiosk Ignored Ignored Preview Apr 10, 2026 8:17am

Request Review

Copy link
Copy Markdown
Contributor

@amnn amnn left a comment

Choose a reason for hiding this comment

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

Thanks very much for this fix @Rifvckzie13, it looks good to me -- out of interest, what do you use jsonrpc-alt for?

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