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

comments fixes

This commit is contained in:
alexcos20 2020-04-14 19:15:05 +03:00
parent 0f51014d71
commit 2aee1bff7b

View File

@ -129,13 +129,9 @@ export class Brizo extends Instantiable {
signatureMessage signatureMessage
) )
let serviceEndpoint const serviceEndpoint = serviceAgreementId
if (serviceAgreementId) ? await this.getEndpointFromAgreement('compute', serviceAgreementId)
serviceEndpoint = await this.getEndpointFromAgreement( : this.getComputeEndpoint()
'compute',
serviceAgreementId
)
else serviceEndpoint = await this.getComputeEndpoint()
if (!serviceEndpoint) { if (!serviceEndpoint) {
throw new Error( throw new Error(