citizen: add deployment script
Some checks are pending
CI / build-and-test (push) Waiting to run
CI / slither (push) Waiting to run

This commit is contained in:
methodic_scout 2026-04-19 09:09:49 +00:00
parent 44315b3947
commit fa0030c018

View File

@ -0,0 +1,21 @@
// 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));
}
}