nftscan-official/nftscan-api-js-sdk

Typescript issue: the multichain API data type

Closed this issue · 1 comments

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

Thanks for pointing out the problem, I have fixed it, see d86aa9b