Giter VIP home page Giter VIP logo

Comments (11)

VaderUri avatar VaderUri commented on June 25, 2024

from hashlips_nft_minting_dapp.

rcpilotp51 avatar rcpilotp51 commented on June 25, 2024

yes! thanks for your response! @VaderUri

from hashlips_nft_minting_dapp.

rcpilotp51 avatar rcpilotp51 commented on June 25, 2024

I'm not sure whats going on. This is the last piece of the puzzle for me

from hashlips_nft_minting_dapp.

rcpilotp51 avatar rcpilotp51 commented on June 25, 2024

@VaderUri I'm not sure whats going on. I think everything is setup.

from hashlips_nft_minting_dapp.

rcpilotp51 avatar rcpilotp51 commented on June 25, 2024

@HashLips any insight?

from hashlips_nft_minting_dapp.

xxxcrow avatar xxxcrow commented on June 25, 2024

same issue here, deployed on polygon testnet

from hashlips_nft_minting_dapp.

trinichad avatar trinichad commented on June 25, 2024

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.

export const connect = () => {
  return async (dispatch) => {
    dispatch(connectRequest());
    const abiResponse = await fetch("/config/myABI.json", {

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

 const claimNFTs = () => {
    let cost = CONFIG.WEI_COST;
    let gasLimit = CONFIG.GAS_LIMIT;
    let totalCostWei = String(cost * mintAmount);
    let totalGasLimit = String(gasLimit * mintAmount);
    console.log("Cost: ", totalCostWei);
    console.log("Gas limit: ", totalGasLimit);
    setFeedback(`Minting your ${CONFIG.NFT_NAME} NFT...`);
    setClaimingNft(true);
    blockchain.smartContract.methods
      .mintSale(mintAmount)
      .send({
        gasLimit: String(totalGasLimit),
        to: CONFIG.CONTRACT_ADDRESS,
        from: blockchain.account,
        value: totalCostWei,

from hashlips_nft_minting_dapp.

vollit avatar vollit commented on June 25, 2024

Same error here, maybe it is caused by an change in the web3 lib?

from hashlips_nft_minting_dapp.

vollit avatar vollit commented on June 25, 2024

@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.

from hashlips_nft_minting_dapp.

Doughp avatar Doughp commented on June 25, 2024

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,
thank you.

from hashlips_nft_minting_dapp.

idolaru avatar idolaru commented on June 25, 2024

Has anyone managed to fix this ?

from hashlips_nft_minting_dapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.