Skip to content

Commit ba3e633

Browse files
committed
error check previous mints
1 parent 21bf1a3 commit ba3e633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/nftport/mint.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ async function main() {
2323

2424
try {
2525
fs.accessSync(mintFile);
26+
const meta = JSON.parse(mintFile)
27+
if(meta.mintData.response !== "OK") throw 'not minted'
2628
console.log(`${meta.name} already minted`);
2729
} catch(err) {
2830
try {

0 commit comments

Comments
 (0)