Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update curl URLs for the new repo folder
  • Loading branch information
dwightjl committed Apr 20, 2023
commit a8c870449d87c3beec18e8d00f50d027ba2c0b03
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ For this example, download some example source code and create a script to assem
1. Use `curl` to get the example source code. This code runs on each node in the DON and returns a response to your consumer contract. For this example, use the source from the [Call an API](/chainlink-functions/tutorials/api-query-parameters) tutorial. The following `curl` request creates a file named `Functions-request-source.js` with the source code:

```shell
curl -o Functions-request-source.js https://raw.githubusercontent.com/smartcontractkit/smart-contract-examples/main/Functions-request-source.js
curl -o Functions-request-source.js https://raw.githubusercontent.com/smartcontractkit/smart-contract-examples/main/add-functions-to-project/Functions-request-source.js
```

1. Get the example script and put it in the `./scripts` directory:

```shell
curl -o ./scripts/request.js https://raw.githubusercontent.com/smartcontractkit/smart-contract-examples/main/scripts/request.js
curl -o ./scripts/request.js https://raw.githubusercontent.com/smartcontractkit/smart-contract-examples/main/add-functions-to-project/scripts/request.js
```

1. Edit the script and set your deployed consumer address in `const consumerAddress`:
Expand Down