-
Notifications
You must be signed in to change notification settings - Fork 980
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
TypeError: blockchain.smartContract.methods.mint is not a function #38
Comments
Is this when you try doing it through the minting dapp?
…Sent from my iPhone
On 03 Jan 2022, at 16:39, Keith Brown ***@***.***> wrote:
I can connect the metamask, but the buy button produces this error.
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),`
Not sure what to do. Any suggestions
I'm trying to test on a Rinkeby test contract - could that be the issue?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
yes! thanks for your response! @VaderUri |
I'm not sure whats going on. This is the last piece of the puzzle for me |
@VaderUri I'm not sure whats going on. I think everything is setup. |
@HashLips any insight? |
same issue here, deployed on polygon testnet |
Make sure you put in your contract abi. I created a new abi file "myABI.json" and copied my contract-specific abi to that file. I then went to "src > redux >blockchain > blockchainActions.js" and updated the abi location.
Also, my mint call in my contract is "mintSale", by default, in this minting dapp it was set to "mint" so check that in the App.js
|
Same error here, maybe it is caused by an change in the web3 lib? |
@rcpilotp51 I fixed it, it has to do with your ABI file. If i put the default ABI file in the folder it fixes the problem. The methods .mint() and for example .getTotalSupply() missed in my ABI file so thats why it keeps crashing. |
Have you found the fix to this issue? I am seeing people saying the ABI but mine says safeMint so i changed the ".mint" to ".safeMint" and it still is not working. or is giving me another error saying invalid address, or saying it received two parameters but was expecting one. Any help is appreciated, |
Has anyone managed to fix this ? |
I can connect the metamask, but the buy button produces this error.
129 | console.log("Gas limit: ", totalGasLimit); 130 | setFeedback(
Minting your ${CONFIG.NFT_NAME}...`);131 | setClaimingNft(true);
Not sure what to do. Any suggestions
I'm trying to test on a Rinkeby test contract - could that be the issue?
The text was updated successfully, but these errors were encountered: