mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix compute status (#746)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
0a6f39a5ef
commit
26957a8432
@ -208,7 +208,7 @@ export class Compute extends Instantiable {
|
||||
): Promise<ComputeJob[]> {
|
||||
let provider: Provider
|
||||
|
||||
if (did) {
|
||||
if (did || service || ddo) {
|
||||
if (!service) {
|
||||
if (!ddo) {
|
||||
ddo = await this.ocean.assets.resolve(did)
|
||||
@ -221,6 +221,7 @@ export class Compute extends Instantiable {
|
||||
|
||||
const { serviceEndpoint } = service
|
||||
provider = await Provider.getInstance(this.instanceConfig)
|
||||
|
||||
await provider.setBaseUrl(serviceEndpoint)
|
||||
} else {
|
||||
provider = this.ocean.provider
|
||||
|
Loading…
x
Reference in New Issue
Block a user