Skip to content

Instantly share code, notes, and snippets.

@RAMTO
Last active August 18, 2022 06:05
Show Gist options
  • Save RAMTO/f75abec29827bfae9b6c5b450897f9cb to your computer and use it in GitHub Desktop.
Save RAMTO/f75abec29827bfae9b6c5b450897f9cb to your computer and use it in GitHub Desktop.
Hardhat configuration file
require('@nomicfoundation/hardhat-toolbox');
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: '0.8.9',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
rinkeby: {
url: process.env.PROVIDER_URL,
accounts: [process.env.WALLET_PRIVATE_KEY],
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment