Added Basic & Mood NFT
CI / Foundry project (push) Waiting to run

This commit is contained in:
2024-08-19 13:34:51 +08:00
parent 11e41de86a
commit b0c330b3a4
17 changed files with 279 additions and 3 deletions
+18
View File
@@ -5,6 +5,7 @@ pragma solidity ^0.8.19;
import {Script} from "forge-std/Script.sol";
import {DevOpsTools} from "lib/foundry-devops/src/DevOpsTools.sol";
import {BasicNft} from "src/BasicNft.sol";
import {MoodNft} from "src/MoodNft.sol";
contract MintBasicNft is Script {
// Here Use CIDv1 start with bafy...
@@ -41,3 +42,20 @@ contract MintBasicNft is Script {
vm.stopBroadcast();
}
}
contract MintMoodNft is Script {
function run() external {
address mostRecentDeployed = DevOpsTools.get_most_recent_deployment(
"MoodNft",
block.chainid
);
mintNftOnContract(mostRecentDeployed);
}
function mintNftOnContract(address contractAddress) public {
vm.startBroadcast();
MoodNft moodNft = MoodNft(contractAddress);
moodNft.mintNft();
vm.stopBroadcast();
}
}