From e403a7aef568a0b2d991a2d37141b69d6f36e667 Mon Sep 17 00:00:00 2001 From: Artyom Veremeenko Date: Thu, 23 Nov 2023 13:26:10 +0300 Subject: [PATCH] clean up --- .github/workflows/scratch-deploy-local.yml | 14 +++++--------- docs/scratch-deploy.md | 6 ++++++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/scratch-deploy-local.yml b/.github/workflows/scratch-deploy-local.yml index 95c7c45b8..0517338d3 100644 --- a/.github/workflows/scratch-deploy-local.yml +++ b/.github/workflows/scratch-deploy-local.yml @@ -1,4 +1,4 @@ -name: Do scratch deployment on local anvil node +name: Scratch deploy on local clean anvil on: pull_request: @@ -6,7 +6,6 @@ on: jobs: do-scratch-deploy: - name: Assert deployed contracts bytecode runs-on: ubuntu-latest steps: @@ -14,11 +13,11 @@ jobs: with: persist-credentials: false - - name: Install Froundy + - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 - - name: Start anvil - run: anvil & + - name: Start anvil in background + run: anvil --accounts 20 --mnemonic "test test test test test test test test test test test junk" & - name: Setup node.js version uses: actions/setup-node@v4 @@ -51,8 +50,5 @@ jobs: steps.cache-yarn-cache.outputs.cache-hit != 'true' || steps.cache-node-modules.outputs.cache-hit != 'true' - - name: Run JS linters - run: yarn lint:js - - - name: Run deploy scripts + - name: Run local deploy script run: bash scripts/scratch/dao-local-deploy.sh diff --git a/docs/scratch-deploy.md b/docs/scratch-deploy.md index f6cd2a5e6..515a499a6 100644 --- a/docs/scratch-deploy.md +++ b/docs/scratch-deploy.md @@ -75,6 +75,12 @@ Run the node with the command: anvil -p 8545 --auto-impersonate --gas-price 0 --base-fee 0 --chain-id 1337 --mnemonic "test test test test test test test test test test test junk" ``` +or just + +```shell +anvil +``` + ### Hardhat node > NB: Hardhat node configuration is set in `hardhat.config.js` under `hardhat: { `.