mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
11 lines
343 B
TypeScript
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;
|
||
|
};
|