Hello @cryptokid, you’re always awake, I love you!
So I think my question was asked wrong. And maybe that’s not the issue with Moralis, but working with a live network instead of hardhat.
Because I’m able to get the events, particularly event[0]
With with Hardhat I’m able to get what I need from a transaction with:
const mintingTx = await owItem.connect(players[1]).mintItem(50);
const minted = await mintingTx.wait();
const eventTransferSingle = minted.events[0];
tokenIdB = parseInt(eventTransferSingle.args.id);
With Moralis on a live AVAX Fuji C-Chain I get using similar:
const mintingTx = await Moralis.executeFunction(this.contractOptions);
const mined = await mintingTx.wait();
const eventTransferSingle = mined.events[0];
// eventTransferSingle already returns a different object
let tokenIdB = parseInt(eventTransferSingle.args);
// so eventTransferSingle is NaN
Does this make sense?