1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

fix timeouts

This commit is contained in:
alexcos20 2020-05-14 06:08:45 -07:00
parent 49b61b5590
commit cee861cffd
2 changed files with 5 additions and 3 deletions

View File

@ -477,7 +477,8 @@ export class OceanAssets extends Instantiable {
public async createAccessServiceAttributes( public async createAccessServiceAttributes(
consumerAccount: Account, consumerAccount: Account,
price: string, price: string,
datePublished: string datePublished: string,
timeout: number = 0
): Promise<ServiceAccess> { ): Promise<ServiceAccess> {
const { templates } = this.ocean.keeper const { templates } = this.ocean.keeper
const serviceAgreementTemplate = await templates.escrowAccessSecretStoreTemplate.getServiceAgreementTemplate() const serviceAgreementTemplate = await templates.escrowAccessSecretStoreTemplate.getServiceAgreementTemplate()

View File

@ -266,7 +266,8 @@ export class OceanCompute extends Instantiable {
public async createComputeServiceAttributes( public async createComputeServiceAttributes(
consumerAccount: Account, consumerAccount: Account,
price: string, price: string,
datePublished: string datePublished: string,
timeout: number = 3600
): Promise<ServiceCompute> { ): Promise<ServiceCompute> {
const { templates } = this.ocean.keeper const { templates } = this.ocean.keeper
const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate() const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate()
@ -281,7 +282,7 @@ export class OceanCompute extends Instantiable {
creator: consumerAccount.getId(), creator: consumerAccount.getId(),
datePublished, datePublished,
price, price,
timeout: 3600, timeout: timeout,
name name
}, },
serviceAgreementTemplate serviceAgreementTemplate