dsa-connectors/scripts/deployment/deployConnector.ts
2021-12-11 13:37:45 +05:30

11 lines
343 B
TypeScript

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;
};