tornado-nova/scripts/deployBSCHelper.js

22 lines
636 B
JavaScript
Raw Normal View History

2021-10-04 12:22:13 +02:00
const { ethers } = require('hardhat')
2021-10-06 17:09:37 +02:00
// This script deploys L1Helper to FOREIGN chain (mainnet)
2021-10-04 12:22:13 +02:00
async function main() {
const owner = '0x03Ebd0748Aa4D1457cF479cce56309641e0a98F5'
const omniBridge = '0xf0b456250dc9990662a6f25808cc74a6d1131ea9'
const token = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c' // WBNB
2021-10-06 17:09:37 +02:00
const Helper = await ethers.getContractFactory('L1Helper')
2021-10-04 12:22:13 +02:00
const helper = await Helper.deploy(omniBridge, token, owner)
await helper.deployed()
2021-10-06 17:09:37 +02:00
console.log(`L1Helper address: ${helper.address}`)
2021-10-04 12:22:13 +02:00
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
})