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

Create .env with nile init and remove example.env #265

Merged
merged 7 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
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