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

23 lines
618 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 {WETH} from "../contracts/tokens/WETH.sol";
contract DeployWETH is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
address deployer = vm.addr(deployerPrivateKey);
console.log("Deploying WETH with address:", deployer);
vm.startBroadcast(deployerPrivateKey);
WETH weth = new WETH();
console.log("WETH deployed at:", address(weth));
vm.stopBroadcast();
}
}