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

correctly pass arguments to brizo.compute

This commit is contained in:
Matthias Kretschmann 2020-02-03 19:02:42 +01:00
parent c5b6e9cdb3
commit 58b04b7c00
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 15 additions and 6 deletions

View File

@ -139,7 +139,7 @@ export class OceanCompute extends Instantiable {
consumerAccount, consumerAccount,
algorithmDid, algorithmDid,
algorithmMeta, algorithmMeta,
null, undefined,
output output
) )
@ -162,6 +162,8 @@ export class OceanCompute extends Instantiable {
'put', 'put',
agreementId, agreementId,
consumerAccount, consumerAccount,
undefined,
undefined,
jobId jobId
) )
@ -184,6 +186,8 @@ export class OceanCompute extends Instantiable {
'delete', 'delete',
agreementId, agreementId,
consumerAccount, consumerAccount,
undefined,
undefined,
jobId jobId
) )
@ -223,6 +227,8 @@ export class OceanCompute extends Instantiable {
'get', 'get',
agreementId, agreementId,
consumerAccount, consumerAccount,
undefined,
undefined,
jobId jobId
) )
@ -245,6 +251,8 @@ export class OceanCompute extends Instantiable {
'get', 'get',
agreementId, agreementId,
consumerAccount, consumerAccount,
undefined,
undefined,
jobId jobId
) )

View File

@ -10,11 +10,11 @@ const metadataAlgorithm = getMetadata(0, 'algorithm')
const customConfig: Config = { const customConfig: Config = {
...config, ...config,
nodeUri: 'https://nile.dev-ocean.com', // nodeUri: 'https://nile.dev-ocean.com',
aquariusUri: 'https://aquarius.nile.dev-ocean.com', // aquariusUri: 'https://aquarius.nile.dev-ocean.com',
brizoUri: 'http://89.46.156.10:8030', // brizoUri: 'http://89.46.156.10:8030',
secretStoreUri: 'https://secret-store.nile.dev-ocean.com', // secretStoreUri: 'https://secret-store.nile.dev-ocean.com',
brizoAddress: '0x413c9ba0a05b8a600899b41b0c62dd661e689354', // brizoAddress: '0x413c9ba0a05b8a600899b41b0c62dd661e689354',
verbose: true verbose: true
} }
@ -78,6 +78,7 @@ describe('Compute', () => {
.order(account, dataset.id) .order(account, dataset.id)
.next(step => steps.push(step)) .next(step => steps.push(step))
console.log(agreementId)
assert.isDefined(agreementId) assert.isDefined(agreementId)
assert.deepEqual(steps, [0, 1, 2, 3]) assert.deepEqual(steps, [0, 1, 2, 3])
} catch {} } catch {}