mirror of
https://github.com/tornadocash/tornado-aggregator.git
synced 2024-12-04 23:15:03 +01:00
add verification
This commit is contained in:
parent
f61eeb8678
commit
4b446b7c35
@ -17,8 +17,8 @@ $ yarn test
|
||||
|
||||
## Deploying
|
||||
|
||||
Deploy to Kovan:
|
||||
Deploy Aggregator:
|
||||
|
||||
```bash
|
||||
$ yarn deploy:kovan
|
||||
```shell
|
||||
yarn hardhat run scripts/deploy.js --network mainnet
|
||||
```
|
||||
|
@ -1,5 +1,4 @@
|
||||
const { ethers } = require('hardhat')
|
||||
const config = require('../config')
|
||||
|
||||
async function main() {
|
||||
const [deployer] = await ethers.getSigners()
|
||||
@ -11,7 +10,19 @@ async function main() {
|
||||
const AggregatorFactory = await ethers.getContractFactory('Aggregator')
|
||||
const aggregator = await AggregatorFactory.deploy()
|
||||
|
||||
console.log('Aggregator address:', aggregator.address)
|
||||
console.log(' address:', aggregator.address)
|
||||
|
||||
console.log('Delay before verification...')
|
||||
await new Promise((r) => setTimeout(r, 60000))
|
||||
|
||||
try {
|
||||
await hre.run('verify:verify', {
|
||||
address: aggregator.address,
|
||||
constructorArguments: [],
|
||||
})
|
||||
} catch (err) {
|
||||
console.log(`Verification of aggregator failed:`, err.message)
|
||||
}
|
||||
}
|
||||
|
||||
main()
|
||||
@ -19,4 +30,4 @@ main()
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user