Skip to content

Commit

Permalink
chore: fix ghwf
Browse files Browse the repository at this point in the history
  • Loading branch information
scolear committed May 13, 2024
1 parent d7bdfb8 commit 4435d73
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/hardhat-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:
- synchronize

env:
KEY: 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
KEY2: 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
KEY3: 0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a
KEY: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
KEY2: '0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d'
KEY3: '0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a'

jobs:
test:
Expand Down
23 changes: 13 additions & 10 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ require('@nomiclabs/hardhat-solhint');
require('solidity-coverage');
require('dotenv').config();

if (!process.env.KEY_FOR_SAFE) process.env.KEY_FOR_SAFE = process.env.KEY;
const arbitrumURL = process.env.ARB_NODE_ADDR ?? 'https://arb1.arbitrum.io/rpc';
const arbSepoliaURL =
process.env.ARB_SEPOLIA_NODE_ADDR ??
'https://sepolia-rollup.arbitrum.io/rpc';

const arbDeployerKey = process.env.ARB_DEPLOYER ?? process.env.KEY;
const keyForSafe = process.env.KEY_FOR_SAFE ?? process.env.KEY;

module.exports = {
defaultNetwork: 'hardhat',
Expand All @@ -32,30 +38,27 @@ module.exports = {
process.env['KEY'],
process.env['KEY2'],
process.env['KEY3'],
process.env['KEY_FOR_SAFE'],
keyForSafe,
],
},
arbsepolia: {
// url: 'https://sepolia-rollup.arbitrum.io/rpc',
url: process.env['ARB_SEPOLIA_NODE_ADDR'],
url: arbSepoliaURL,
chainId: 421614,
accounts: [
process.env['KEY'],
process.env['KEY2'],
process.env['KEY3'],
process.env['KEY_FOR_SAFE'],
keyForSafe,
],
},
arbitrum: {
// url: 'https://arb1.arbitrum.io/rpc',
// url: `https://arbitrum-mainnet.infura.io/v3/ed8c014d7cdb486880718a5777ab0ff5`,
url: process.env['ARB_NODE_ADDR'],
url: arbitrumURL,
chainId: 42161,
accounts: [
process.env['ARB_DEPLOYER'],
arbDeployerKey,
process.env['KEY2'],
process.env['KEY3'],
process.env['KEY_FOR_SAFE'],
keyForSafe,
],
},
},
Expand Down

0 comments on commit 4435d73

Please sign in to comment.