From 26d44d087bfa609fa8147db0cc5339d153b4ed64 Mon Sep 17 00:00:00 2001 From: Christian Palazzo Date: Thu, 28 Mar 2024 18:26:47 +0100 Subject: [PATCH] fix(@agora): AG-18 fixed unit test n --- .github/workflows/main.yml | 3 +++ hardhat.config.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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], }, }, };