Skip to content

Commit

Permalink
add .env info
Browse files Browse the repository at this point in the history
  • Loading branch information
kalote committed Oct 10, 2023
1 parent b943e9c commit 11c33d5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/guides/universal-receiver-delegate/create-custom-urd-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,24 @@ Confirm the changes and submit the transaction.

## 2 - Environment variables

In your hardhat project, create a `.env` file (if it's not already present) and fill the `PRIVATE_KEY` and `UP_ADDR` with the info coming from your UP Browser Extension. To get those values:
In your hardhat project, create a `.env` file (if it's not already present).

```text title=".env"
PRIVATE_KEY=
UP_ADDR=
UP_RECEIVER=
PERCENTAGE=
```

To fill the `PRIVATE_KEY` and `UP_ADDR` info:

- Click on the extension
- Click on the Settings icon ⚙️ at the top right corner, then select "reveal private keys"
- Enter your password
- Scroll down and copy the `privateKey` field to your `.env` file in `PRIVATE_KEY`
- Copy the `address` field to your `.env` file in `UP_ADDR`

We will need 2 additional information:
We will need to fill 2 additional parameters:

- `UP_RECEIVER` => the address that will receive part of the tokens
- `PERCENTAGE` => the percentage of the received tokens that will be transfered
Expand Down

0 comments on commit 11c33d5

Please sign in to comment.