tornado-nova/scripts/deployBSCHelper.js
2021-10-04 13:22:13 +03:00

22 lines
672 B
JavaScript

const { ethers } = require('hardhat')
// This script deploys WETHOmnibridgeRouter to FOREIGN chain (mainnet)
async function main() {
const owner = '0x03Ebd0748Aa4D1457cF479cce56309641e0a98F5'
const omniBridge = '0xf0b456250dc9990662a6f25808cc74a6d1131ea9'
const token = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c' // WBNB
const Helper = await ethers.getContractFactory('WETHOmnibridgeRouter')
const helper = await Helper.deploy(omniBridge, token, owner)
await helper.deployed()
console.log(`WETHOmnibridgeRouter address: ${helper.address}`)
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
})