add fuji testnet to config

This commit is contained in:
Barry Gitarts 2021-01-31 15:57:57 -05:00
parent c5422021be
commit e738c31536
2 changed files with 15 additions and 3 deletions

View File

@ -45,6 +45,10 @@ const goerli =
process.env.GOERLI ||
new providers.InfuraProvider("goerli").connection.url;
const fuji =
process.env.FUJI ||
new providers.JsonRpcProvider("https://api.avax-test.network/ext/bc/C/rpc")
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
@ -78,7 +82,15 @@ const config: HardhatUserConfig = {
accounts,
chainId: 5,
saveDeployments: true,
tags: ["staging"]
tags: ["test"]
},
fuji: {
live: true,
url: 'https://api.avax-test.network/ext/bc/C/rpc',
accounts,
chainId: 0xa869,
saveDeployments: true,
tags: ["test"]
}
},
solidity: {

View File

@ -29,8 +29,8 @@
"test": "npx hardhat test",
"node": "npx hardhat node --watch",
"frontend": "cd frontend && npm run start",
"deploy:goerli": "hardhat deploy --network goerli"
"deploy:goerli": "hardhat deploy --network goerli",
"deploy:fuji": "hardhat deploy --network fuji"
},
"repository": {
"type": "git",