From f64c5a285ceaf9e0b20d12ea904b33de93fdc6b8 Mon Sep 17 00:00:00 2001 From: ilmoi Date: Fri, 12 Nov 2021 14:55:00 +0200 Subject: [PATCH] fix: make max supply optional (#59) --- src/actions/mintNFT.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/mintNFT.ts b/src/actions/mintNFT.ts index cc26faa..a56087c 100644 --- a/src/actions/mintNFT.ts +++ b/src/actions/mintNFT.ts @@ -18,7 +18,7 @@ interface MintNFTParams { connection: Connection; wallet: Wallet; uri: string; - maxSupply: number; + maxSupply?: number; } interface MintNFTResponse { @@ -90,7 +90,7 @@ export const mintNFT = async ({ updateAuthority: wallet.publicKey, mint: mint.publicKey, mintAuthority: wallet.publicKey, - maxSupply: new BN(maxSupply), + maxSupply: maxSupply ? new BN(maxSupply) : null, }, );