From 843449255f831de6f9c22f8ce42166c3ccc84ccd Mon Sep 17 00:00:00 2001 From: Soso Date: Wed, 30 Oct 2024 10:58:47 +0800 Subject: [PATCH] Feature:Add NFT deploy script --- solidity-scripting/script/NFTContract.s.sol | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 solidity-scripting/script/NFTContract.s.sol diff --git a/solidity-scripting/script/NFTContract.s.sol b/solidity-scripting/script/NFTContract.s.sol new file mode 100644 index 0000000..626e21c --- /dev/null +++ b/solidity-scripting/script/NFTContract.s.sol @@ -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(); + } +}