Giter VIP home page Giter VIP logo

Comments (3)

NoWeiBruh avatar NoWeiBruh commented on June 25, 2024

having same error right now

from hashlips_nft_minting_dapp.

hamzahoda avatar hamzahoda commented on June 25, 2024

having same error.

from hashlips_nft_minting_dapp.

mike7user avatar mike7user commented on June 25, 2024

Hi all.

I'm having issues minting using the DApp. It seems as though minting over 10 NFTs at 100 MATIC or 100000000000000000000 WEI per NFT, throws an error. What seems to solve the issue is when the price is less than 100 MATIC. The specific error code is as follows: "Error: [number-to-bn] while converting number "1.3e+21" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported. Given value: "1.3e+21""

I believe the source of the issue is the claimNFTs() function. Does anyone have an idea of how to fix this?

This can be a few issues.
ONE:
HERE is a link on converting your price from big numbers to small numbers. Use a [Eth to Wei converter] (https://eth-converter.com/) to get the correctly proportioned eth price.

or

TWO:
You may have the incorrectly addressed the ".mint" function. Try reviewing back to see what call name you labeled the function during contract deployment and ensure that the to are one and the same. A common issue would be ".saleMint" value in SmartContract.sol and a ".mint" value in the App.js. obviously, They need to be the same for the imported contract to communicate with the Dapp script.

THREE:
You may be inputting the big number value incorrectly. This link may help you understand how to format the value to get the correct output.

Goodluck. If I notice your reply, I will respond asap. The struggle is real! Keep on truckin!

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.