UNPKG

@hyperlane-xyz/core

Version:

Core solidity contracts for Hyperlane

13 lines (11 loc) 252 B
import hre from 'hardhat' export const deploy = async ( name: string, opts?: { args?: any[] signer?: any } ) => { const factory = await hre.ethers.getContractFactory(name, opts?.signer) return factory.deploy(...(opts?.args || [])) }