HashLips / hashlips_minting_card

This repo provides a nice and easy way for linking an existing NFT smart contract to this minting dapp.
MIT License
86 stars 67 forks source link

Unhandled Rejection (Error): Invalid number of parameters for "mint". Got 2 expected 1! #3

Open xmbox opened 2 years ago

xmbox commented 2 years ago

I entered the necessary information and abi, but I am getting this error:

mint src/components/Minter.js:139

value: String( info.web3.utils.toHex(Number(mintInfo.cost) * mintInfo.amount) ), data: info.contract.methods .mint(info.account, mintInfo.amount) .encodeABI(), };

onClick src/components/Minter.js:220

`<button disabled={!info.connected || mintInfo.cost == "0"} className="button" onClick={() => mint()}

Mint {mintInfo.amount} `

AmbeFo commented 2 years ago

Hi, @7777nft Did you find the solution? If yes, please help me. Thank you.

Jharmony commented 2 years ago

Hello. I'm also encountering this issue. Has anyone had any luck?

johdavid commented 2 years ago

Me too