diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 90b42d4..d95d316 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,9 @@ jobs: - name: Run smart contracts unit tests run: npm run test-contracts + env: + ALCHEMY_PRIVATE_KEY: ${{ secrets.ALCHEMY_PRIVATE_KEY }} + GOERLI_URL: ${{ secrets.GOERLI_URL }} - name: Run scripts unit tests run: npm run test-scripts diff --git a/hardhat.config.ts b/hardhat.config.ts index c5062b6..fdaad46 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -7,7 +7,7 @@ import "hardhat-gas-reporter"; import "hardhat-deploy"; const GOERLI_URL: string = process.env.GOERLI_URL || ""; -const PRIVATE_KEY: string = process.env.PRIVATE_KEY || ""; +const ALCHEMY_PRIVATE_KEY: string = process.env.ALCHEMY_PRIVATE_KEY || ""; const config: HardhatUserConfig = { solidity: "0.8.24", @@ -18,7 +18,7 @@ const config: HardhatUserConfig = { networks: { goerli: { url: GOERLI_URL, - accounts: [PRIVATE_KEY], + accounts: [ALCHEMY_PRIVATE_KEY], }, }, };