Skip to content

Commit 133e830

Browse files
committed
docs: Add instructions for importing a wallet in the Foundry keystore to README
1 parent 373c7fa commit 133e830

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ The system consists of two main components:
3838
cp .env.template .env # and edit .env content
3939
```
4040

41+
**Note:** To run scripts, you must save a wallet in the Foundry keystore. Use the following command to import a wallet with a raw private key:
42+
43+
```bash
44+
cast wallet import --private-key <RAW_PRIVATE_KEY> <ACCOUNT_NAME>
45+
```
46+
47+
Alternatively, you can use a mnemonic by specifying the `--mnemonic-path` option. Remember the `<ACCOUNT_NAME>` you choose, and set it in your `.env` file under the `ACCOUNT` field.
48+
4149
## Contract Overview
4250

4351
Instead of duplicating code that may become outdated, here are links to the key contracts in the repository:

0 commit comments

Comments
 (0)