mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
ec28ef546c
commit
ebc1e22d88
@ -7,11 +7,12 @@ export default async function checkPreviousOrder(
|
||||
serviceType: ServiceType
|
||||
) {
|
||||
const service = ddo.findServiceByType(serviceType)
|
||||
// apparenlty cost and timeout are not found, even though they are there...
|
||||
const previousOrder = await ocean.datatokens.getPreviousValidOrders(
|
||||
ddo.dataToken,
|
||||
service.attributes.main.cost,
|
||||
(service.attributes.main as any).cost,
|
||||
service.index,
|
||||
service.attributes.main.timeout,
|
||||
(service.attributes.main as any).timeout,
|
||||
accountId
|
||||
)
|
||||
return previousOrder
|
||||
|
Loading…
Reference in New Issue
Block a user