From 17b923606c675d129558ebacecb0b01437006621 Mon Sep 17 00:00:00 2001 From: Aaron Heckmann Date: Thu, 13 Jan 2022 13:37:48 -0800 Subject: [PATCH] chore: fix lint issues --- src/actions/mintNFT.ts | 2 +- test/actions/mintNFT.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/actions/mintNFT.ts b/src/actions/mintNFT.ts index 6b22865..aad0b30 100644 --- a/src/actions/mintNFT.ts +++ b/src/actions/mintNFT.ts @@ -90,7 +90,7 @@ export const mintNFT = async ({ updateAuthority: wallet.publicKey, mint: mint.publicKey, mintAuthority: wallet.publicKey, - maxSupply: (maxSupply || maxSupply === 0) ? new BN(maxSupply) : null, + maxSupply: maxSupply || maxSupply === 0 ? new BN(maxSupply) : null, }, ); diff --git a/test/actions/mintNFT.test.ts b/test/actions/mintNFT.test.ts index 6c71906..d57465e 100644 --- a/test/actions/mintNFT.test.ts +++ b/test/actions/mintNFT.test.ts @@ -54,12 +54,12 @@ describe('minting an NFT', () => { await pause(2000); // HACK - const metadataEdition = await Metadata.getEdition(connection, mint) as MasterEdition; + const metadataEdition = (await Metadata.getEdition(connection, mint)) as MasterEdition; expect(metadataEdition.data?.maxSupply?.toNumber()).toBe(maxSupply); }); }); } - }) + }); describe('when metadata json not found', () => { beforeEach(() => {