I’m getting a typeError of undefined when trying to use the native transfer. I noticed that Docs show a different style of implementation than the tutorial video Ivan did, but for me produce the same error.
the error in console
main.js:419 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'ETH')
at runcode (main.js:419)
at HTMLButtonElement.onclick
according to docs
async function runcode(){
// sending 0.5 ETH
const options = {type: "native", amount: Moralis.Units.ETH("0.1"), receiver: "0xb8504ca9794c2da15725e608814b5d169b28cf9a"}
let result = await Moralis.transfer(options);
console.log(result);
}
according to video within docs
function runcode(){
Moralis.transfer({type: "native", receiver: "0xb8504ca9794c2da15725e608814b5d169b28cf9a", amount:Moralis.Units.ETH("0.1")});
}
I’ve updated my database. Im wondering if I should just scrap my database and start fresh? I cant seem to view the logs or errors from the Moralis console UI anymore as well.