Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mint error #55

Closed
WangGuaGua1023 opened this issue Jan 28, 2022 · 2 comments
Closed

mint error #55

WangGuaGua1023 opened this issue Jan 28, 2022 · 2 comments

Comments

@WangGuaGua1023
Copy link

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.

@clipartinc
Copy link

Check your abi.json to make sure it matches your contract.

It's mentioned here:
#23

@WangGuaGua1023
Copy link
Author

WangGuaGua1023 commented Jan 28, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants