Skip to content
Snippets Groups Projects
Select Git revision
  • 562f4b1220902e1d61b1caac54248319f82c8727
  • main default protected
2 results

hardhat.config.ts

Blame
  • hardhat.config.ts 755 B
    import "hardhat-deploy";
    import "@typechain/hardhat";
    import "@nomiclabs/hardhat-ethers";
    import { HardhatUserConfig } from "hardhat/config"
    
    const config: HardhatUserConfig = {
      defaultNetwork: "hardhat",
      networks: {
        hardhat: {
          chainId: 31337,
          allowUnlimitedContractSize: true
        },
        localhost: {
          chainId: 31337,
          allowUnlimitedContractSize: true
        },
      },
      solidity: {
        version: "0.8.8",
        settings: {
          optimizer: {
            enabled: true,
            runs: 200,
          },
        },
      },
      namedAccounts: {
        deployer: {
          default: 0, // The deployer will be the first account
          1: 0, 
        },
      },
      // mocha: {
      //   timeout: 200000, // 200 seconds max for running tests
      // },
    }
    
    export default config