Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

TypeError: Cannot read properties of undefined (reading 'length') #5

Open
felipegerhardt opened this issue Feb 26, 2023 · 0 comments
Open

Comments

@felipegerhardt
Copy link

Hi,

I wonder why this error happens when creating a NFT:

pages/create-and-list-nft.js (82:40) @ _callee$

  80 | let listingFee = await marketPlaceContract.methods.LISTING_FEE().call()
  81 | listingFee = listingFee.toString()
> 82 | boredPetsContract.methods.mint(url).send({ from: accounts[0] }).on('receipt', function (receipt) {
     |                                    ^
  83 |     console.log('minted');
  84 |     // List the NFT
  85 |     const tokenId = receipt.events.NFTMinted.returnValues[0];
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant