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