Comments (11)
from hashlips_nft_minting_dapp.
yes! thanks for your response! @VaderUri
from hashlips_nft_minting_dapp.
I'm not sure whats going on. This is the last piece of the puzzle for me
from hashlips_nft_minting_dapp.
@VaderUri I'm not sure whats going on. I think everything is setup.
from hashlips_nft_minting_dapp.
@HashLips any insight?
from hashlips_nft_minting_dapp.
same issue here, deployed on polygon testnet
from hashlips_nft_minting_dapp.
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.
Same error here, maybe it is caused by an change in the web3 lib?
from hashlips_nft_minting_dapp.
@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.
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.
Has anyone managed to fix this ?
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.