Created
January 14, 2021 06:42
-
-
Save mingderwang/64046242aabff1e796ecaa4a93792fbd to your computer and use it in GitHub Desktop.
hardhat.config.js use ganache as default network (example)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @type import('hardhat/config').HardhatUserConfig | |
*/ | |
require('@nomiclabs/hardhat-ethers'); | |
require('@openzeppelin/hardhat-upgrades'); | |
module.exports = { | |
defaultNetwork: "ganache", | |
networks: { | |
ganache: { | |
url: "http://172.17.144.1:7545", | |
// accounts: [privateKey1, privateKey2, ...] | |
} | |
}, | |
solidity: { | |
version: "0.6.12", | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice one thanks.
I had to do:
and then