mirror of
https://github.com/tornadocash/nova-upgrade-proposal.git
synced 2024-11-22 09:36:51 +01:00
28 lines
677 B
JavaScript
28 lines
677 B
JavaScript
const { ethers } = require('hardhat')
|
|
const config = require('../config')
|
|
|
|
async function main() {
|
|
const [deployer] = await ethers.getSigners()
|
|
|
|
console.log('Deploying contracts with the account:', deployer.address)
|
|
|
|
console.log('Account balance:', (await deployer.getBalance()).toString())
|
|
|
|
const Proposal = await ethers.getContractFactory('NovaUpgradeProposal')
|
|
const proposal = await Proposal.deploy(
|
|
config.novaProxy,
|
|
config.newNovaImpl,
|
|
config.ethAmbBridge,
|
|
config.gasLimit,
|
|
)
|
|
|
|
console.log('Proposal address:', proposal.address)
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error)
|
|
process.exit(1)
|
|
})
|