Skip to content

Commit

Permalink
fix: need to change testnet file otherwise deployment wont work (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError authored Oct 30, 2023
1 parent 51406cd commit c4719f3
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 36 deletions.
3 changes: 3 additions & 0 deletions deploy/test/009_deploy_local_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const func: DeployFunction = async function ({ deployments, network, config }) {

if (fileName.length == 0 || !fs.existsSync(fileName)) {
fileName = network.name + '_deployed.json';
if (network.name == 'pretestnet') {
fileName = 'testnet_deployed.json';
}
}

fs.writeFileSync(fileName, JSON.stringify(deployedData, null, '\t') + '\n');
Expand Down
8 changes: 8 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ const config: HardhatUserConfig = {
browserURL: 'https://sepolia.etherscan.io/address/',
},
},
{
network: 'pretestnet',
chainId: 5,
urls: {
apiURL: 'https://api-goerli.etherscan.io/api',
browserURL: 'https://goerli.etherscan.io/address/',
},
},
{
network: 'testnet',
chainId: 5,
Expand Down
Loading

0 comments on commit c4719f3

Please sign in to comment.