fix CI
This commit is contained in:
parent
ed48bee1f6
commit
e09f53652a
@ -1,2 +1,3 @@
|
|||||||
PRIVATE_KEY=0x
|
PRIVATE_KEY=0x
|
||||||
INFURA_TOKEN=
|
INFURA_TOKEN=
|
||||||
|
NETWORK=goerli
|
||||||
|
@ -17,15 +17,19 @@ task('accounts', 'Prints the list of accounts', async () => {
|
|||||||
/**
|
/**
|
||||||
* @type import('hardhat/config').HardhatUserConfig
|
* @type import('hardhat/config').HardhatUserConfig
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
const config = {
|
||||||
solidity: '0.6.12',
|
solidity: '0.6.12',
|
||||||
networks: {
|
networks: {
|
||||||
hardhat: {
|
hardhat: {
|
||||||
blockGasLimit: 950000000,
|
blockGasLimit: 950000000,
|
||||||
},
|
},
|
||||||
goerli: {
|
|
||||||
url: `https://goerli.infura.io/v3/${process.env.INFURA_TOKEN}`,
|
|
||||||
accounts: [process.env.PRIVATE_KEY],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.env.NETWORK) {
|
||||||
|
config.networks[process.env.NETWORK] = {
|
||||||
|
url: `https://${process.env.NETWORK}.infura.io/v3/${process.env.INFURA_TOKEN}`,
|
||||||
|
accounts: [process.env.PRIVATE_KEY],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
module.exports = config
|
||||||
|
Loading…
Reference in New Issue
Block a user