orca-so / typescript-sdk

The Orca SDK contains a set of simple to use APIs to allow developers to integrate with the Orca platform.
155 stars 49 forks source link

Cannot get orca pool in devnet as it imports the mainnet PoolConfigs to validate #96

Closed callmewhy closed 2 years ago

callmewhy commented 2 years ago

https://github.com/orca-so/typescript-sdk/blob/e503a7f7a2b6ca4d5052f4b3d927273ee70259cc/src/public/devnet/utils.ts#L6

Hi team, recently I found I cannot use getPool in devnet, as we see in referred code, it's validating Configs using MainPool config.

Is it by design or it's a potential bug?

Thanks!

callmewhy commented 2 years ago

I found that maybe I should pass the mainnet config and it will find the devnet config for me... a little tricky but it works. Thanks