tornado-trees/hardhat.config.js

29 lines
756 B
JavaScript
Raw Normal View History

2021-02-02 12:38:11 +01:00
/* global task, ethers */
2021-02-02 12:27:58 +01:00
require('@nomiclabs/hardhat-waffle')
2021-02-02 23:32:44 +01:00
require('dotenv').config()
2021-02-01 14:40:32 +01:00
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
2021-02-02 12:27:58 +01:00
task('accounts', 'Prints the list of accounts', async () => {
const accounts = await ethers.getSigners()
2021-02-01 14:40:32 +01:00
for (const account of accounts) {
2021-02-02 12:27:58 +01:00
console.log(account.address)
2021-02-01 14:40:32 +01:00
}
2021-02-02 12:27:58 +01:00
})
2021-02-01 14:40:32 +01:00
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
2021-02-02 12:27:58 +01:00
solidity: '0.6.12',
2021-02-02 23:32:44 +01:00
networks: {
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_TOKEN}`,
accounts: [process.env.PRIVATE_KEY],
},
},
2021-02-02 12:27:58 +01:00
}