Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Create .env with nile init and remove example.env (#265)
Browse files Browse the repository at this point in the history
* remove example.env

* create .env with nile init

* add nile init setup description

* remove explicit .env write

* Create .env

* add private key

* add line
  • Loading branch information
andrew-fleming authored Nov 2, 2022
1 parent a3d4f88 commit 7201416
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ nile init
⛵️ Nile project ready! Try running:
```

`nile init` builds the project structure by:

- Creating directories for `contracts` and `tests`.
- Populating these directories with test modules.
- Generating a `.env` to store private key aliases.
- Setting up a `node.json` for initializing a local node.

## Usage

### `node`
Expand Down Expand Up @@ -130,8 +137,6 @@ Deploy an Account associated with a given private key.

To avoid accidentally leaking private keys, this command takes an alias instead of the actual private key. This alias is associated with an environmental variable of the same name, whose value is the actual private key.

You can find an example `.env` file in `example.env`. These are private keys only to be used for testing and never in production.

```sh
nile setup <private_key_alias>

Expand Down
2 changes: 0 additions & 2 deletions example.env

This file was deleted.

1 change: 1 addition & 0 deletions src/nile/base_project/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PRIVATE_KEY = 0xe3e70682c2094cac629f6fbed82c07cd

0 comments on commit 7201416

Please sign in to comment.