Skip to content

Commit

Permalink
add NFTMarket deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
XieJunhua committed Apr 26, 2024
1 parent 4f9245f commit 08b577e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25 <0.9.0;

import { Foo } from "../src/Foo.sol";
import { NFTMarket, BaseERC20 } from "../src/Week2/NFTMarket.sol";
import { MyERC721 } from "../src/Week2/MyERC721.sol";

import { BaseScript } from "./Base.s.sol";

/// @dev See the Solidity Scripting tutorial: https://book.getfoundry.sh/tutorials/solidity-scripting
contract Deploy is BaseScript {
contract NFTMarketDeploy is BaseScript {
function run() public {
uint256 deployPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployPrivateKey);
Foo foo = new Foo();
BaseERC20 token = new BaseERC20(vm.envAddress("ETH_FROM"));
MyERC721 myNFT = new MyERC721();

NFTMarket nft = new NFTMarket(address(myNFT), address(token));

vm.stopBroadcast();
}
}

0 comments on commit 08b577e

Please sign in to comment.