mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
Merge pull request #75 from oceanprotocol/defect/brizo-purchase-endpoint
Fix brizo purchaseEndpoint.
This commit is contained in:
commit
e1b1642907
@ -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)),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user