Skip to content

Commit

Permalink
Fix default env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Oct 25, 2022
1 parent 8c5c21e commit b4fb00d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NETWORK=eth-mainnet
DEPLOYER_PRIVATE_KEY=
TENDERLY_SECRET_KEY=
ETHERSCAN_API_KEY=
ALCHEMY_KEY=
3 changes: 2 additions & 1 deletion .github/workflows/ci-hardhat-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ jobs:
- name: Run tests
run: yarn test
env:
ALCHEMY_KEY: ${{ secrets.alchemyKey }}
NETWORK: eth-mainnet
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
8 changes: 2 additions & 6 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ const config: HardhatUserConfig = {
networks: {
hardhat: {
forking: {
enabled: true,
url: `https://${process.env.NETWORK}.g.alchemy.com/v2/${process.env.ALCHEMY_KEY}`,
blockNumber: Number(process.env.BLOCK_NUMBER ?? 15_500_000),
url: `https://${process.env.NETWORK || "eth-mainnet"}.g.alchemy.com/v2/${process.env.ALCHEMY_KEY}`,
blockNumber: Number(process.env.BLOCK_NUMBER || 15_500_000),
},
},
},
Expand All @@ -37,9 +36,6 @@ const config: HardhatUserConfig = {
},
}),
},
paths: {
sources: "./contracts/",
},
solidity: {
compilers: [
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"description": "Core contracts of the Morpho Protocol V1.",
"scripts": {
"test": "NETWORK=eth-mainnet hardhat test test/*.spec.ts",
"test:upgrade:stEth": "NETWORK=eth-mainnet BLOCK_NUMBER=15580517 hardhat test test/upgrades/stEth.spec.ts",
"test": "hardhat test test/*.spec.ts",
"test:upgrade:stEth": "BLOCK_NUMBER=15580517 hardhat test test/upgrades/stEth.spec.ts",
"lint": "yarn lint:sol && yarn lint:ts",
"lint:ts": "eslint . --ext .ts",
"lint:sol": "solhint 'contracts/**/*.sol'",
Expand Down

0 comments on commit b4fb00d

Please sign in to comment.