Skip to content

Commit

Permalink
wip: debug agreemenet id
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jun 25, 2024
1 parent af9a8e7 commit 1dcafcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ComputeExamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ You can also add various delays so you see the various states of the compute job
providerUrl,
await consumerAccount.getAddress(),
computeJobId,
DATASET_DDO.id
agreementId
)
```
<!--
Expand Down
7 changes: 6 additions & 1 deletion test/integration/ComputeExamples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ let resolvedDatasetDdo: DDO
let resolvedAlgorithmDdo: DDO

let computeJobId: string
let agreementId: string
/// ```

/// ### 4.3 Helper methods
Expand Down Expand Up @@ -654,13 +655,17 @@ describe('Compute-to-data example tests', async () => {
algo
)

console.log('COMPUTE JOBS', computeJobs)

/// ```
/// <!--
assert(computeJobs, 'Cannot start compute job')
/// -->
/// Let's save the compute job it, we re going to use later
/// ```Typescript
computeJobId = computeJobs[0].jobId
// eslint-disable-next-line prefer-destructuring
agreementId = computeJobs[0].agreementId
}) ///
/// ```

Expand All @@ -672,7 +677,7 @@ describe('Compute-to-data example tests', async () => {
providerUrl,
await consumerAccount.getAddress(),
computeJobId,
DATASET_DDO.id
agreementId
)
/// ```
/// <!--
Expand Down

0 comments on commit 1dcafcf

Please sign in to comment.