To deploy, we’ll again use our current project and set up a simple script, provided below.
contract Deploy is Script {
string memory name = "ExampleBench";
string memory symbol = "EXBench";
uint256 totalSupply = 10000e18;
modifier broadcast(address deployer) {
vm.startBroadcast(deployer);
_;
vm.stopBroadcast();
}
function run() external override {
deploy(<Your Deployer Address>);
}
function deploy(address deployer) public broadcast(deployer) {
new ExampleERC7660(name, symbol, totalSupply, deployer);
}
}
Now, you’ll need to run the script through the following command, having defined the deployer private key and rpc endpoint in your local environment.