Skip to content

Commit

Permalink
chore: Add BASE networks to hardhat config
Browse files Browse the repository at this point in the history
  • Loading branch information
ethenotethan committed Jan 9, 2025
1 parent ef3f474 commit 1c2c6ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
files: ./contracts/coverage.json
verbose: false
token: ${{ secrets.CODECOV_TOKEN }}

# TODO: This is test is failing due testnode referencing a latest target when running
# a prysm ETH validator. This causes config ingestion to fail and the resource to fail to spin up.
# This has already been patched upstream and will need to be incorporated within the next rebasing.
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:

# - name: Test 4844
# run: yarn test:4844

# NOTE: OCL disables theses tests by default, not worth fixing until
# they are supported upstream
# SEE for ref: https://github.com/OffchainLabs/nitro-contracts/blob/94999b3e2d3b4b7f8e771cc458b9eb229620dd8f/.github/workflows/contract-tests.yml#L153-L247
Expand Down
12 changes: 12 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ module.exports = {
enabled: process.env['SHOULD_FORK'] === '1',
},
},
base: {
url: '' + process.env['BASE_MAINNET_RPC'],
accounts: process.env['MAINNET_PRIVKEY']
? [process.env['MAINNET_PRIVKEY']]
: [],
},
baseSepolia: {
url: '' + process.env['BASE_SEPOLIA_RPC'],
accounts: process.env['DEVNET_PRIVKEY']
? [process.env['DEVNET_PRIVKEY']]
: [],
},
mainnet: {
url: 'https://mainnet.infura.io/v3/' + process.env['INFURA_KEY'],
accounts: process.env['MAINNET_PRIVKEY']
Expand Down

0 comments on commit 1c2c6ec

Please sign in to comment.