Skip to content

Bug with 721A contract mint functions #58

Open
@0xTING

Description

@0xTING

I created a new 721A contract on your premade contracts - on Rinkeby
I then go to the embed tab - it says "sold out" - this is because no NFTs have been created and isSoldOut takes priority over no active claim phase according to your logic
So far so good
I then "create" and upload any nft image with dummy meta
I then go to embed and it shows on the mint button (in preview):
"There is not enough supply to claim" if quantity is 1
"Mint (Free)" if quantity is 0

The issue here is that the increase quantity button is not disabled, and the "Mint (free)" button when quantity is 0 is also not disabled. See images
Screenshot 2022-07-18 114310
Screenshot 2022-07-18 114359

I replicated this with your 721 (on rinkeby) and went through your source code to confirm this is incorrect behaviour. The expected behaviour is correct on the 721 as below:
Screenshot 2022-07-18 114516
This should be the case as no claim phase has been created. Both the mint button and the quantity buttons are disabled as expected.

Perhaps the issue lies in calling useClaimIneligibilityReasons

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions