Hi,
I have setup a new server, updated the url/appId in main.js, added cloud functions and 2 plugins.
run ganache-cli -d (so addresses are kept same),
run .\frpc.exe -c .\frpc.ini (with ini data from the View details and ganache localport = 8545)
inported an address of ganache and connect to that one in Metamask
Then update my Profile : success
Then want to create an Item: click Create button directly gives in console (waiting in Metamask for 1st confirmation):
The mintNft code (starting at line 209):
mintNft = async (metadataUrl) => {
console.log('mintNft... url=' + metadataUrl);
const receipt = await tokenContract.methods.createItem(metadataUrl).send({from: ethereum.selectedAddress});
console.log('mintNft tokenId=' + receipt.events.Transfer.returnValues.tokenId);
return receipt.events.Transfer.returnValues.tokenId;
}
What can be wrong?