I received the following error while doing Rarible lazymint.
received error at “console.log(res);” line
if (Moralis.User.current() != null){
loggedUserAdd = Moralis.User.current().get('ethAddress')
console.log(loggedUserAdd)
let metadataHash = jsonFile.hash();
console.log(jsonFile.ipfs())
let res = await Moralis.Plugins.rarible.lazyMint({
chain: 'rinkeby',
userAddress: loggedUserAdd,
tokenType: 'ERC721',
tokenUri: 'ipfs://' + metadataHash,
royaltiesAmount: 5, // 0.05% royalty. Optional
})
console.log(res);
}