minswap / sdk

Query Minswap data and build transactions
MIT License
51 stars 20 forks source link

(Testnet) - Uncaught TypeError TypeError: utxos.filter is not a function #8

Closed ItsDaveB closed 1 year ago

ItsDaveB commented 1 year ago

Firstly, I'm really excited about this integration! When I installed this package into a blank typescript project, I am receiving the following, from using the listed example in the ReadMe.

Uncaught TypeError TypeError: utxos.filter is not a function
at getPools (/Users/username/source/personal/node-typescript-template/node_modules/@minswap/blockfrost-adapter/src/adapter.ts:34:18)
    at processTicksAndRejections (internal/process/task_queues:96:5)

https://github.com/minswap/blockfrost-adapter/blob/4f6221402b4504896f5c08eaf80541292d7753ce/src/adapter.ts#L74

Edit - Just done some digging and this only occurs when the network is set to testnet, mainnet works fine and pools are returned, I hope this helps.