Commit ef5343d6 authored by elenadimitrova's avatar elenadimitrova

Update L2StandardTokenFactory deployment artifact and script

parent 33cb9025
/* Imports: External */ import { ethers } from 'hardhat'
import { DeployFunction } from 'hardhat-deploy/dist/types'
/* Imports: Internal */ // eslint-disable-next-line prefer-arrow/prefer-arrow-functions
import { getContractDefinition } from '../src' async function main() {
const l2TokenFactory = await ethers.getContractFactory(
const deployFn: DeployFunction = async (hre: any) => { 'OVM_L2StandardTokenFactory'
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()
const l2TokenFactory = getContractDefinition(
'OVM_L2StandardTokenFactory',
true
) )
const l2StandardTokenFactory = await l2TokenFactory.deploy()
await deploy('OVM_L2StandardTokenFactory', { console.log(
contract: l2TokenFactory, 'L2 Standard Token Factory deployed to:',
args: [], l2StandardTokenFactory.address
from: deployer, )
log: true,
})
} }
deployFn.tags = ['OVM_L2StandardTokenFactory'] main()
.then(() => process.exit(0))
export default deployFn .catch((error) => {
console.error(error)
process.exit(1)
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment