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:
parent
0a05e1bf61
commit
2a80c605d4
@ -510,7 +510,8 @@ export class Compute extends Instantiable {
|
|||||||
serviceIndex: number,
|
serviceIndex: number,
|
||||||
algorithm: ComputeAlgorithm,
|
algorithm: ComputeAlgorithm,
|
||||||
mpAddress?: string,
|
mpAddress?: string,
|
||||||
computeAddress?: string
|
computeAddress?: string,
|
||||||
|
searchPreviousOrders = true
|
||||||
): SubscribablePromise<OrderProgressStep, string> {
|
): SubscribablePromise<OrderProgressStep, string> {
|
||||||
return new SubscribablePromise(async (observer) => {
|
return new SubscribablePromise(async (observer) => {
|
||||||
// first check if we can order this
|
// first check if we can order this
|
||||||
@ -526,7 +527,8 @@ export class Compute extends Instantiable {
|
|||||||
consumerAccount,
|
consumerAccount,
|
||||||
-1,
|
-1,
|
||||||
mpAddress,
|
mpAddress,
|
||||||
computeAddress
|
computeAddress,
|
||||||
|
searchPreviousOrders
|
||||||
)
|
)
|
||||||
return order
|
return order
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user