js-deprecated icon indicating copy to clipboard operation
js-deprecated copied to clipboard

[Bug]: mintNFT + mintEditionFromMaster with maxSupply causes Total Supply to still be set to 1 and some tx failures for the editions

Open kylebragger opened this issue 3 years ago • 0 comments

Which package is this bug report for?

other

Issue description

I'm using the Metaplex JS SDK to do some basic NFT work. The biggest issue I am currently having is calling mintNFT() with a maxSupply of e.g. 5 doesn't do anything when minting editions. The resulting token has a Max Total Supply of 1, and then some of the editions mint while others halfway do -- they seem to exist but the full transaction fails.

My current flow is:

  1. mintNFT() with a maxSupply of 5 => get the mint address
  2. mintEditionFromMaster() using the mint address from mintNFT() passed to masterEditionMint

Some sample tokens from that flow, on generated on the devnet, are pasted in Relevant log output.

I'm using the @metaplex/js SDK.

Command

No response

Relevant log output

master mint address CwqGjK4gQGT5fXLnMo7fB6dMS6jFLG2CLE7sybCvQ84C
- edition mint address 3UcGc3ZNtFrkFWzgnwyBDFgWTc9kQSChagya2EcaHso8
- edition mint address 6AaJ24FQKC5zCKkf9oeyVmA5Wi9iQERokvcN66Mc3TvN
- edition mint address 7BaAXXkczsHmyYHEyfpWaHC5a37n9A7aw782rrbYfHzP
- edition mint address 7Wn6W3EpxmAFqPpM8a5jRiBQYfyPXWtrxcEyAEdLvdaM
- edition mint address ALnfdSfMVpyiugrgJKbhYcfvmKjK8iXnBNiA3126HWor

Operating system

macOS 12.2.1

Priority this issue should have

Low (slightly annoying)

Check the Docs First

  • [X] I have checked the docs and it didn't solve my issue

kylebragger avatar Mar 03 '22 17:03 kylebragger