1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

add seachPreviousOrder (#755)

This commit is contained in:
Alex Coseru 2021-04-19 15:48:15 +03:00 committed by GitHub
parent 0a05e1bf61
commit 2a80c605d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -510,7 +510,8 @@ export class Compute extends Instantiable {
serviceIndex: number,
algorithm: ComputeAlgorithm,
mpAddress?: string,
computeAddress?: string
computeAddress?: string,
searchPreviousOrders = true
): SubscribablePromise<OrderProgressStep, string> {
return new SubscribablePromise(async (observer) => {
// first check if we can order this
@ -526,7 +527,8 @@ export class Compute extends Instantiable {
consumerAccount,
-1,
mpAddress,
computeAddress
computeAddress,
searchPreviousOrders
)
return order
})