Skip to content

mint error #55

@WangGuaGua1023

Description

@WangGuaGua1023

when I mint the NFT, error happans.

Error: Invalid number of parameters for "mint". Got 1 expected 2!
▶ 2 stack frames were collapsed.
claimNFTs
D:/git/hashlips_nft_minting_dapp/src/App.js:132
129 | console.log("Gas limit: ", totalGasLimit);
130 | setFeedback(Minting your ${CONFIG.NFT_NAME}...);
131 | setClaimingNft(true);

132 | blockchain.smartContract.methods
| ^ 133 | .mint(mintAmount)
134 | .send({
135 | gasLimit: String(totalGasLimit),
View compiled
onClick
D:/git/hashlips_nft_minting_dapp/src/App.js:359
356 | disabled={claimingNft ? 1 : 0}
357 | onClick={(e) => {
358 | e.preventDefault();
359 | claimNFTs();
| ^ 360 | getData();
361 | }}
362 | >
View compiled
▶ 19 stack frames were collapsed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions