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

grantServiceExecution -> grantCompute

This commit is contained in:
Matthias Kretschmann 2020-01-29 16:29:26 +01:00
parent e37420dabf
commit 1f552812f1
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ describe('Register Escrow Compute Execution Template', () => {
}) })
it('should fulfill the conditions from computing side', async () => { it('should fulfill the conditions from computing side', async () => {
await ocean.agreements.conditions.grantServiceExecution( await ocean.agreements.conditions.grantCompute(
agreementId, agreementId,
did, did,
consumer.getId(), consumer.getId(),

View File

@ -81,13 +81,13 @@ export class OceanAgreementsConditions extends Instantiable {
} }
/** /**
* Authorize the consumer defined in the agreement to execute a remote service associated with this asset. * Authorize the consumer defined in the agreement to compute on this asset.
* @param {string} agreementId Agreement ID. * @param {string} agreementId Agreement ID.
* @param {string} did Asset ID. * @param {string} did Asset ID.
* @param {string} grantee Consumer address. * @param {string} grantee Consumer address.
* @param {Account} from Account of sender. * @param {Account} from Account of sender.
*/ */
public async grantServiceExecution( public async grantCompute(
agreementId: string, agreementId: string,
did: string, did: string,
grantee: string, grantee: string,