Skip to content

Commit

Permalink
error check previous mints
Browse files Browse the repository at this point in the history
  • Loading branch information
codeSTACKr committed Dec 30, 2021
1 parent 21bf1a3 commit ba3e633
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/nftport/mint.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ async function main() {

try {
fs.accessSync(mintFile);
const meta = JSON.parse(mintFile)
if(meta.mintData.response !== "OK") throw 'not minted'
console.log(`${meta.name} already minted`);
} catch(err) {
try {
Expand Down

0 comments on commit ba3e633

Please sign in to comment.