diff --git a/README.md b/README.md index a0897a1..87497b5 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,10 @@ cd reputation-and-roles-monorepo yarn install ``` -2. In your terminal, clone the environemnt example +2. In your terminal, setup the environment by cloning the environemnt example ``` -cd packages/foundry -cp .env.example .env +yarn setup ``` 3. On the first terminal, run a local network: diff --git a/package.json b/package.json index 7432237..f844757 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ ] }, "scripts": { + "setup": "yarn workspace @se-2/foundry setup", "account": "yarn workspace @se-2/foundry account", "chain": "yarn workspace @se-2/foundry chain", "compile": "yarn workspace @se-2/foundry compile", diff --git a/packages/foundry/package.json b/packages/foundry/package.json index 883439c..18cabf4 100644 --- a/packages/foundry/package.json +++ b/packages/foundry/package.json @@ -3,6 +3,7 @@ "version": "0.0.1", "type": "module", "scripts": { + "setup": "cp .env .example", "account": "node script/ListAccount.js", "chain": "anvil --config-out localhost.json", "compile": "forge compile",