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