Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Jan 13, 2022
1 parent b4552c0 commit 885c4e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/actions/mintNFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
);

Expand Down
4 changes: 2 additions & 2 deletions test/actions/mintNFT.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ describe('minting an NFT', () => {

await sleep(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(() => {
Expand Down

0 comments on commit 885c4e4

Please sign in to comment.