Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFTs not minting #4

Open
UsmanKhOkhar16 opened this issue Feb 4, 2022 · 8 comments
Open

NFTs not minting #4

UsmanKhOkhar16 opened this issue Feb 4, 2022 · 8 comments

Comments

@UsmanKhOkhar16
Copy link

Hi,
is there anything change into the moralis or cloud function? or is there any dependency required for running the openMint?
Because previously I was running the openMint program and it was running successfully, but right now it is not working properly, like when we mint the NFT , it is not further proceeding like not opening the Metamask wallet popup for confirmation of transaction etc.
Thanks in advance.

@Ty-Sir
Copy link
Owner

Ty-Sir commented Feb 4, 2022

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.

@UsmanKhOkhar16
Copy link
Author

@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

@Ty-Sir
Copy link
Owner

Ty-Sir commented Feb 9, 2022

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.

@staminna
Copy link

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

@Ty-Sir
Copy link
Owner

Ty-Sir commented Feb 16, 2022

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

@Drehalas
Copy link

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?

@Drehalas
Copy link

Drehalas commented Apr 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@staminna @Drehalas @Ty-Sir @UsmanKhOkhar16 and others