Skip to content

Commit

Permalink
update docs and tests, pass signer account, not signer address
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Dec 12, 2024
1 parent e312ec7 commit 88ee8d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ComputeExamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ Let's have 5 minute of compute access
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
```
<!--
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ Initializes the provider for a compute request.
| `computeEnv` | `string` | The compute environment. |
| `validUntil` | `number` | The job expiration date. |
| `providerUri` | `string` | The provider URI. |
| `accountId` | `string` | caller address |
| `signer` | `Signer` | caller account |
| `signal?` | `AbortSignal` | abort signal |

#### Returns
Expand Down
2 changes: 1 addition & 1 deletion test/integration/ComputeExamples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ describe('Compute-to-data example tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
/// ```
/// <!--
Expand Down
12 changes: 6 additions & 6 deletions test/integration/ComputeFlow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
!('error' in providerInitializeComputeResults.algorithm),
Expand Down Expand Up @@ -501,7 +501,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
providerInitializeComputeResults.algorithm.validOrder,
Expand Down Expand Up @@ -563,7 +563,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
!('error' in providerInitializeComputeResults.algorithm),
Expand Down Expand Up @@ -641,7 +641,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
providerInitializeComputeResults.algorithm.validOrder,
Expand Down Expand Up @@ -712,7 +712,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
providerInitializeComputeResults.algorithm.validOrder,
Expand Down Expand Up @@ -797,7 +797,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
providerInitializeComputeResults.algorithm.validOrder,
Expand Down

0 comments on commit 88ee8d3

Please sign in to comment.