mirror of
https://github.com/tornadocash/nova-upgrade-proposal.git
synced 2024-11-22 09:36:51 +01:00
23 lines
567 B
JavaScript
23 lines
567 B
JavaScript
const { ethers } = require('hardhat')
|
|
|
|
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 Executor = await ethers.getContractFactory('TestExecutor')
|
|
const executor = await Executor.deploy()
|
|
await executor.deployed()
|
|
|
|
console.log('Executor address:', executor.address)
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error)
|
|
process.exit(1)
|
|
})
|