Skip to content

Commit

Permalink
Add more solidity comments
Browse files Browse the repository at this point in the history
  • Loading branch information
olich97 committed Dec 7, 2023
1 parent ec709cc commit 3773a52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions script/DeployMyToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ pragma solidity ^0.8.20;
import {Script, console2} from "forge-std/Script.sol";
import {MyToken} from "../src/MyToken.sol";

/// @title DeployMyTokenScript
/// @notice This script is used for deploying the MyToken contract
/// @dev Inherits from Script in forge-std for deployment functionalities
contract DeployMyTokenScript is Script {

/// @notice Runs the deployment script for MyToken
/// @dev Retrieves the deployer's private key and contract owner address from environment variables.
/// It then broadcasts the transaction to deploy MyToken and stops broadcasting after deployment.
function run() external {
// load variables from envinronment
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY");
Expand Down

0 comments on commit 3773a52

Please sign in to comment.