Files
smom-dbis-138/script/DeployMulticall.s.sol

23 lines
662 B
Solidity
Raw Permalink Normal View History

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import {Script, console} from "forge-std/Script.sol";
import {Multicall} from "../contracts/utils/Multicall.sol";
contract DeployMulticall is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
address deployer = vm.addr(deployerPrivateKey);
console.log("Deploying Multicall with address:", deployer);
vm.startBroadcast(deployerPrivateKey);
Multicall multicall = new Multicall();
console.log("Multicall deployed at:", address(multicall));
vm.stopBroadcast();
}
}