Skip to content

Commit

Permalink
fix: make max supply optional (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmoi authored Nov 12, 2021
1 parent 6c7b9f3 commit f64c5a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/mintNFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface MintNFTParams {
connection: Connection;
wallet: Wallet;
uri: string;
maxSupply: number;
maxSupply?: number;
}

interface MintNFTResponse {
Expand Down Expand Up @@ -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,
},
);

Expand Down

0 comments on commit f64c5a2

Please sign in to comment.