Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jalas167 committed Feb 8, 2024
1 parent 52be3c0 commit 65d4f08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/docs/degenhack/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,8 @@ Make sure you have created an app-key and exported its value as [`YAGNA_APPKEY``
Next, create a file named requestor.mjs and paste the following content into it. This script sets up a task to execute node -v on the Golem Network and displays the result in your terminal.

```js
import {
TaskExecutor
} from '@golem-sdk/golem-js';

(async function main() {
import { TaskExecutor } from '@golem-sdk/golem-js'
;(async function main() {
const executor = await TaskExecutor.create({
// The image you'd like to run on the provider(s)
package: 'golem/node:latest',
Expand All @@ -172,7 +169,8 @@ import {

// Which network you want to spend GLM on
payment: {
network: 'goerli', driver: 'erc20',
network: 'goerli',
driver: 'erc20',
},
})

Expand Down Expand Up @@ -203,6 +201,8 @@ The standard quickstart example has been altered with the following modification
network: 'goerli', driver: 'erc20',
}, indicates that we would like to run the task on the `testnet`.

- it also utilizes a unique app-key stored in the `YAGNA_APPKEY` variable.

{% alert level="info" %}

Please note that the default examples provided in the Golem Documentation are set up to use an automatically configured APP-KEY and are also intended to run on the `testnet`. You can adapt these examples to run on the `mainnet` by changing the `payment.network` option to `polygon`.
Expand Down

0 comments on commit 65d4f08

Please sign in to comment.