Typescript issue: the multichain API data type
Closed this issue · 1 comments
digital-flowers commented
I have notices that the typescript return data type of the getMultiChainAssets
api is Promise<QueryMultiChainAssets>
and the QueryMultiChainAssets
data type is:
{
chain: string;
collection_assets: Array<CollectionAssets>;
exceed_max_items: boolean;
}
Which i think is incorrect and should be Promise<QueryMultiChainAssets[]>
since you pass multiple chainIds.
Here is my test:
![Screenshot 2023-07-18 at 10 01 15 PM](https://private-user-images.githubusercontent.com/5216291/254359664-b509e195-0e40-4120-9b26-a952c0386f9d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxOTU3NzQsIm5iZiI6MTcyNTE5NTQ3NCwicGF0aCI6Ii81MjE2MjkxLzI1NDM1OTY2NC1iNTA5ZTE5NS0wZTQwLTQxMjAtOWIyNi1hOTUyYzAzODZmOWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDFUMTI1NzU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjIzMjBiNzA1NDAyZDgwMDM0ZDYxYjE1NzU2NzE0Mjc2YjBlZmNhN2FlYzM4YTc3MTc1OGU4MjQ5MDFmODA4NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.07ZhoC5sVYdXWsvqBcaSTjJajB3CXsqKlUPa_pP-r_U)
yohuohuohuo commented
Thanks for pointing out the problem, I have fixed it, see d86aa9b