dsa-connectors/scripts/deployConnector.ts

11 lines
343 B
TypeScript
Raw Normal View History

2021-11-29 17:21:11 +00:00
import { ethers } from "hardhat";
export const deployConnector = async (connectorName: string) => {
const Connector = await ethers.getContractFactory(connectorName);
const connector = await Connector.deploy();
await connector.deployed();
console.log(`${connectorName} Deployed: ${connector.address}`);
return connector.address;
};