22 lines
667 B
Solidity
22 lines
667 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.24;
|
|
|
|
import "forge-std/Script.sol";
|
|
import "../contracts/_GreeterFactory.sol";
|
|
|
|
/// @title Deploy _GreeterFactory
|
|
/// @notice Deployment script for _GreeterFactory
|
|
contract Deploy_GreeterFactory is Script {
|
|
function run() public {
|
|
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
|
|
vm.startBroadcast(deployerPrivateKey);
|
|
|
|
_GreeterFactory instance = new _GreeterFactory("Implement: Deploys and manages instances of the ");
|
|
|
|
vm.stopBroadcast();
|
|
|
|
// Log deployed address for verification
|
|
console.log("_GreeterFactory deployed at:", address(instance));
|
|
}
|
|
}
|