Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(indexer): Leverage index for singleton query (#19247)
## Description Make sure the query to fetch singleton objects in `IndexerReader` can leverage the type index on the `objects` table. ## Test plan ``` # In one session sui$ cargo run --bin sui --features indexer \ -- start --force-renesis --with-indexer # In another session sui$ curl -LX POST "http://localhost:9124" \ --header 'Content-Type: application/json' \ --data-raw '{ "jsonrpc": "2.0", "method": "suix_getCoinMetadata", "id": 1, "params": ["0x2::sui::SUI"] }' | jq -C . { "jsonrpc": "2.0", "result": { "decimals": 9, "name": "Sui", "symbol": "SUI", "description": "", "iconUrl": null, "id": "0x46fe2b6c623e02dd06c74552dc9d6234cb46abb747b1e5936f699a4b2b8df2e8" }, "id": 1 } ``` --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API:
- Loading branch information