16 lines
407 B
Solidity
16 lines
407 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.26;
|
|
|
|
import {Script} from "forge-std/Script.sol";
|
|
import {Counter} from "../src/Counter.sol";
|
|
|
|
contract DeployCounter is Script {
|
|
function run() external returns (Counter counter) {
|
|
uint256 deployerKey = vm.envUint("PRIVATE_KEY");
|
|
|
|
vm.startBroadcast(deployerKey);
|
|
counter = new Counter(0);
|
|
vm.stopBroadcast();
|
|
}
|
|
}
|