MystenLabs / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
5.99k stars 11.1k forks source link

Data issues obtained by Sui API #18834

Open Gessi12 opened 1 month ago

Gessi12 commented 1 month ago

URL: https://docs.sui.io/sui-api-ref#sui_getnormalizedmovemodule

Describe the issue or request. Provide as much detail as possible. For issues, it is helpful to copy the specific section of the topic into the issue.

{ "jsonrpc": "2.0", "id": 1, "method": "sui_getNormalizedMoveModule", "params": [ "0xb58b33843a07c2a7cf2707ca3ebf00d6de2ae1e5a273172c3615e9fd76d7e186", "router" ] }

I am using this API, but there is an issue with the data

8c5bd1ba0e34dc4fc9e56c292b98db8

The contract(0x2eeaab737b37137b94bfa8f841f92e36a153641119da3456dec1926b9960d9be) does not have a module named 'router'

image

I think this CalculatedRouterSwapResult should be a CalculatedRouterSwapResult under the same contract

stefan-mysten commented 1 month ago

Thanks for the report @Gessi12!

Gessi12 commented 1 month ago

Thanks for the report @Gessi12!

I hope to resolve the issue as soon as possible and be informed that it has been resolved, so that users can obtain accurate data

Eis-D-Z commented 1 month ago

The package you mention: 0x2eeaab737b37137b94bfa8f841f92e36a153641119da3456dec1926b9960d9be indeed does not have a router module.

The package you are querying though: 0xb58b33843a07c2a7cf2707ca3ebf00d6de2ae1e5a273172c3615e9fd76d7e186 has a router module. The RPC call works as intended in this case.

Gessi12 commented 1 month ago

Yes, but I need the correct data, which is clearly incorrect @Eis-D-Z

Eis-D-Z commented 1 month ago

Yes I see it now. Sorry for that.