1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

update docs and tests, pass signer account, not signer address

This commit is contained in:
paulo-ocean 2024-11-12 12:40:05 +00:00
parent 71c59230db
commit 81a60a9e51
4 changed files with 9 additions and 9 deletions

View File

@ -627,7 +627,7 @@ Let's have 5 minute of compute access
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
```
<!--

View File

@ -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

View File

@ -627,7 +627,7 @@ describe('Compute-to-data example tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
/// ```
/// <!--

View File

@ -430,7 +430,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
!('error' in providerInitializeComputeResults.algorithm),
@ -501,7 +501,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
providerInitializeComputeResults.algorithm.validOrder,
@ -563,7 +563,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
!('error' in providerInitializeComputeResults.algorithm),
@ -641,7 +641,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
providerInitializeComputeResults.algorithm.validOrder,
@ -712,7 +712,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
providerInitializeComputeResults.algorithm.validOrder,
@ -797,7 +797,7 @@ describe('Compute flow tests', async () => {
computeEnv.id,
computeValidUntil,
providerUrl,
await consumerAccount.getAddress()
consumerAccount
)
assert(
providerInitializeComputeResults.algorithm.validOrder,