Skip to content

Commit

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

import "forge-std/Script.sol";
import "../src/day12/NFTMarket.sol";

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

address tokenAddress = 0x4c65bDEA9e905992731d5727F7Fe86EaD464518C;
address nftAddress = 0x68AAaf6908F070b6ef06a486ca5838fe63E0Ca97;

NFTMarket market = new NFTMarket(nftAddress, tokenAddress);

console.log("NFTMarket deployed at:", address(market));

vm.stopBroadcast();
}
}

0 comments on commit 2f9dba7

Please sign in to comment.