citizen: add deployment script
This commit is contained in:
parent
fe42c6005d
commit
474418b582
21
script/DeployGovernanceContract.s.sol
Normal file
21
script/DeployGovernanceContract.s.sol
Normal file
@ -0,0 +1,21 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.24;
|
||||
|
||||
import "forge-std/Script.sol";
|
||||
import "../contracts/GovernanceContract.sol";
|
||||
|
||||
/// @title Deploy GovernanceContract
|
||||
/// @notice Deployment script for GovernanceContract
|
||||
contract DeployGovernanceContract is Script {
|
||||
function run() public {
|
||||
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
|
||||
vm.startBroadcast(deployerPrivateKey);
|
||||
|
||||
GovernanceContract instance = new GovernanceContract("Implement: Defines the main community governance");
|
||||
|
||||
vm.stopBroadcast();
|
||||
|
||||
// Log deployed address for verification
|
||||
console.log("GovernanceContract deployed at:", address(instance));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user