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

Fix brizo purchaseEndpoint.

This commit is contained in:
ssallam 2018-12-12 20:52:11 +01:00
parent 981bb8346e
commit 968583e2dd

View File

@ -12,7 +12,7 @@ export default class Brizo {
}
public getPurchaseEndpoint() {
return `${this.url}${apiPath}/access/purchase?`
return `${this.url}${apiPath}/access/initialize`
}
public getConsumeEndpoint() {
@ -21,7 +21,7 @@ export default class Brizo {
public getComputeEndpoint(pubKey: string, serviceId: string, algo: string, container: string) {
// tslint:disable-next-line
return `${this.url}${apiPath}/compute?pubKey=${pubKey}&serviceId=${serviceId}&algo=${algo}&container=${container}"`
return `${this.url}${apiPath}/compute`
}
public async initializeServiceAgreement(
@ -42,7 +42,7 @@ export default class Brizo {
return WebServiceConnectorProvider
.getConnector()
.post(
`${this.url}${apiPath}/access/initialize`,
this.getPurchaseEndpoint(),
decodeURI(JSON.stringify(args)),
)