Skip to content

Commit

Permalink
Feature:Add NFT deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
imsoso committed Oct 30, 2024
1 parent 3d52a28 commit 8434492
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions solidity-scripting/script/NFTContract.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.20;

import {Script} from "forge-std/Script.sol";
import {SosoNFT} from "../src/day12/NFTToken.sol";

contract MyScript is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);

SosoNFT nftContract = new SosoNFT();

vm.stopBroadcast();
}
}

0 comments on commit 8434492

Please sign in to comment.