Comments (3)
having same error right now
from hashlips_nft_minting_dapp.
having same error.
from hashlips_nft_minting_dapp.
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)
- gas limit too high?
- Issue with parameter vs to: address
- interaction with thirdweb HOT 2
- Looking for a way to display totalSupply from the contract before connecting wallet HOT 1
- Error: Unhandled Rejection (Error): No "from" address specified in neither the given options, nor the default options.
- Confused about storage part
- error unsupported network HOT 3
- Logo error
- No option for whitelisting and pre-sale
- Code modification HOT 2
- Gas fee estimation error in polygon network
- Can't Get Minting Dapp to work with polygon Testnet HOT 1
- 71 vulnerabilities (13 low, 19 moderate, 36 high, 3 critical....
- Page Blank on Hostinger HOT 1
- Why from mobie the connect button don't open the metamask app?
- Issue deploying on Netlify
- npm warn deprecated
- Error Assertion failled HOT 1
- Uncaught runtime errors if i cancel the minting transaction.
- Error: Invalid number of parameters for "addData". Got 1 expected 4!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashlips_nft_minting_dapp.