nova-upgrade-proposal/scripts/deploy.js

28 lines
677 B
JavaScript
Raw Normal View History

2022-01-27 12:51:44 +01:00
const { ethers } = require('hardhat')
2022-02-14 15:17:57 +01:00
const config = require('../config')
2022-01-27 12:51:44 +01:00
async function main() {
2022-01-29 21:38:21 +01:00
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')
2022-02-14 15:17:57 +01:00
const proposal = await Proposal.deploy(
config.novaProxy,
config.newNovaImpl,
config.ethAmbBridge,
config.gasLimit,
)
2022-01-29 21:38:21 +01:00
console.log('Proposal address:', proposal.address)
2022-01-27 12:51:44 +01:00
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
})