Skip to content

Instantly share code, notes, and snippets.

@timpark0807
Created December 1, 2021 23:53
Show Gist options
  • Save timpark0807/ea26377b716d132f2d8fb9caac348587 to your computer and use it in GitHub Desktop.
Save timpark0807/ea26377b716d132f2d8fb9caac348587 to your computer and use it in GitHub Desktop.
Config file for Polygon hardhat deployment
require("@nomiclabs/hardhat-ethers");
module.exports = {
defaultNetwork: "matic",
networks: {
hardhat: {
},
matic: {
url: 'ALCHEMY_URL',
accounts: ['PRIVATE_KEY'],
}
},
solidity: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 20000
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment