When attempting to lazymint to mainet I keep getting prompted with 'Error:Cannot Lazy mint the token’
I followed the repo provided by Filip https://github.com/MoralisWeb3/youtube-tutorials/tree/main/nft-minter
My modification are as follows below:
let metadataHash = jsonFile.hash();
console.log(jsonFile.ipfs())
let res = await Moralis.Plugins.rarible.lazyMint({
chain: 'eth',
userAddress: user.get('ethAddress'),
tokenType: 'ERC721',
tokenUri: 'ipfs://' + metadataHash,
royaltiesAmount: document.querySelector('#royalties').value * 100, // 0.05% royalty. Optional
})
// document.querySelector('#royalties').value*100
console.log(res);
document.querySelector('#success_message').innerHTML =
`NFT minted. <a href="https://rarible.com/token/${res.data.result.tokenAddress}:${res.data.result.tokenId}">View NFT`;
document.querySelector('#success_message').style.display = "block";
setTimeout(() => {
document.querySelector('#success_message').style.display = "none";
}, 10000)