HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
MIT License
1.36k stars 695 forks source link

multiple NTFs mint error #150

Open tontonfriends opened 2 years ago

tontonfriends commented 2 years ago

I tested from the 'MINT 1' to 'MINT 10',

How to fix the multiple NTFs mint problem?

multiple

code is here

                    <StyledButton
                      disabled={claimingNft ? 1 : 0}
                      onClick={(e) => {
                        e.preventDefault();
                        claimNFTs(1);
                        getData();
                      }}
                    >
                      {claimingNft ? "WAITING.." : "MINT 1"}
                    </StyledButton>
                    <s.SpacerSmall />
                    <StyledButton
                      disabled={claimingNft ? 1 : 0}
                      onClick={(e) => {
                        e.preventDefault();
                        claimNFTs(5);
                        getData();
                      }}
                    >
                      {claimingNft ? "WAITING.." : "MINT 5"}
                    </StyledButton>

I think it's related to 'Gas limit 285000'