// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {Script, console} from "forge-std/Script.sol";
import {Voting} from "../contracts/governance/Voting.sol";

contract DeployVoting is Script {
    function run() external {
        uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
        address deployer = vm.addr(deployerPrivateKey);

        vm.startBroadcast(deployerPrivateKey);

        Voting voting = new Voting();

        console.log("Voting deployed at:", address(voting));
        console.log("Owner:", voting.owner());

        vm.stopBroadcast();
    }
}

