onflow/nft-catalog

GetNftCatalog (maybe also other functions) return only testnet nfts

Opened this issue ยท 1 comments

Thanks for developing the lib ๐Ÿ‘

Issue:

  • no matter what I do, I get only testnet collections

Possible cause:

Solution:

  • IMO it's pretty strange that getAddressMaps returns costs for both mainnet and testnet, it should at least receive an argument mainnet | testnet and return only network-specific address maps.

This is a fair callout. A quick workaround would be to import @onflow/flow-cadut and set the environment correctly to the network you want. We will think through how to better approach this problem.

Ideally, taking in a network parameter would be useful here, however, alot of this code/functions are auto-generated.