Coder Social home page Coder Social logo

NFTs not minting about openmint HOT 7 OPEN

UsmanKhOkhar16 avatar UsmanKhOkhar16 commented on August 13, 2024
NFTs not minting

from openmint.

Comments (7)

Ty-Sir avatar Ty-Sir commented on August 13, 2024

It might have to do with the recent breaking changes in Moralis, but I would first check to make sure the table names in your Moralis db match with the cloud functions.

from openmint.

UsmanKhOkhar16 avatar UsmanKhOkhar16 commented on August 13, 2024

@Ty-Sir
Thanks for your response
The issue is that , we have already put the cloud function code into Moralis. So that when we run the program, it will automatically create tables into database. but when we run the program and try to create or Mint an NFT , this is not working. and thats why the database table are not created yet.
please guide me from where I could get the new syntax of Moralis or changes happened in Moralis
One more thing from where I could find the Moralis SDK version.?
Thanks in advance

from openmint.

Ty-Sir avatar Ty-Sir commented on August 13, 2024

Most answers can be found here, https://docs.moralis.io/introduction/readme
And if not, here is a forum that is active for any Moralis questions, https://forum.moralis.io/

It could be a multitude of reasons why it is not working. I have not kept this repo up to date with the current Moralis syntax since I am building a new version using react-moralis very soon.

from openmint.

staminna avatar staminna commented on August 13, 2024

@Ty-Sir how is progress in the new React frontend?

from openmint.

Ty-Sir avatar Ty-Sir commented on August 13, 2024

I'm currently finishing up a separate project, so probably another week until I can begin

from openmint.

Drehalas avatar Drehalas commented on August 13, 2024

Hello so I also have this minting problem on Upload and Mint button. Than It says Error Minting Token in pop-up than I checked on console. I got
TypeError: Cannot read properties of undefined (reading 'methods')
at mint (erc-721.js:380)
at uploadMetaDataToIPFS (erc-721.js:366)
I tried changing
queryResults[i].attributes. to queryResults[i].get('')
definetly not worked. So fellow developers please dont do that .attributes works as it is in April 2022.

I am also suspecting a DB Naming issue.
I named DBs under Sync and Watch Contract Events these 4 different abis myself. Should they be connected to cloudFunction.js or mentioned in erc-721 ? Or maybe a config file?

from openmint.

Drehalas avatar Drehalas commented on August 13, 2024

Hello so I also have this minting problem on Upload and Mint button. Than It says Error Minting Token in pop-up than I checked on console. I got TypeError: Cannot read properties of undefined (reading 'methods') at mint (erc-721.js:380) at uploadMetaDataToIPFS (erc-721.js:366) I tried changing queryResults[i].attributes. to queryResults[i].get('') definetly not worked. So fellow developers please dont do that .attributes works as it is in April 2022.

I am also suspecting a DB Naming issue. I named DBs under Sync and Watch Contract Events these 4 different abis myself. Should they be connected to cloudFunction.js or mentioned in erc-721 ? Or maybe a config file?


I understand the problem, debugged it but havent fixed yet. Your Code is According to Web3.js, Moralis however moved to Ether.js Library. So Web3.eth is undefined in console.log()

// Get a (ethers.js) web3Provider
web3Provider = await Moralis.enableWeb3();

You need to update your Readme According to Web3.js or Ethers.js for other developers if they want to use it according to Web3.js or Ether.js.

Here is the link according to this issue from Moralis:
https://www.youtube.com/watch?v=n1IXEp9q9AE

from openmint.

Related Issues (7)

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.