Wrong type for getComputeEnvironments function
Closed this issue · 1 comments
Breta01 commented
With the change to the multichain provider, the returned data from getComputeEnvironments
function have a different type than indicated. Now the type should be something like:
Promise<{[chainId: number]: ComputeEnvironment[]>
ocean.js/src/services/Provider.ts
Lines 240 to 249 in fbcd13a
FilipMasar commented
Multichain provider and old provider returns data differently. Is it possible to make it that this function will check the version of the provider and returns data in the same format for both providers?
Maybe other provider endpoints are also effected by this.