From c90141884ae5eeb38a24958df3d2f1814b696192 Mon Sep 17 00:00:00 2001 From: TheChronicMonster Date: Wed, 12 Oct 2022 13:40:05 -0500 Subject: [PATCH] fix: nittypicky --- examples/simple-nft-minter/index.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/simple-nft-minter/index.mjs b/examples/simple-nft-minter/index.mjs index a56c8240d7..a80a13fc2d 100644 --- a/examples/simple-nft-minter/index.mjs +++ b/examples/simple-nft-minter/index.mjs @@ -24,6 +24,9 @@ const getBal = async (who) => fmt(await stdlib.balanceOf(who)); const bal = await getBal(minter); console.log(`Minter starting balance: ${bal}.`); +const name = "JPAlgos"; +const symbol = "JPA"; + const opts = { supply: 1, au: "ipfs://bafybeigdyrzt5...", //asset url @@ -34,9 +37,6 @@ const opts = { note: Uint8Array[1], }; -const name = "JPAlgos"; -const symbol = "JPA"; - const mintNFT = async (minter, name, symbol, opts = {supply: 1, au: "ipfs://bafybeigdyrzt5...", c: null, f: null, defaultFrozen: false, reserve: null, note: Uint8Array[1]}) => { console.log(`Creating the NFT`); const theNFT = await stdlib.launchToken(minter, name, symbol, opts); @@ -50,11 +50,11 @@ const transferNFT = async (minter, receiver, nftId, supply) => { console.log(`Minter has ${preAmtNFT} of the NFT`); if (stdlib.connector == 'ALGO' && await receiver.tokenAccept(nftId)) { - console.log(`Receiver opted-in to NFT` - )}; + console.log(`Receiver opted-in to NFT`); + }; if (stdlib.connector == 'ALGO' && await receiver.tokenAccepted(nftId)) { - console.log(`Token accepted` - )}; + console.log(`Token accepted`); + }; await stdlib.transfer(minter, receiver, supply, nftId); console.log(`NFT transfer made from minter to receiver`);