Skip to content

Commit

Permalink
fix: nittypicky
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChronicMonster committed Oct 12, 2022
1 parent 578a07c commit c901418
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/simple-nft-minter/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand All @@ -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`);

Expand Down

0 comments on commit c901418

Please sign in to comment.