Hey guys can someone please help me fgure out the following error
Trying to send ERC20 tokens from one address to another like ivan explained in the video.
cheers
heres the code
<html>
<head>
<title>Moralis Homework</title>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://unpkg.com/moralis/dist/moralis.js"></script>
</head>
<body>
<button onclick="send()">Send Funds</button>
<br>
<script>
const options = {type: "token", //DAI
receiver:"0x551Db4969866924066a3bCefbF876685f923700C",
contract_address: "0xff795577d9ac8bd7d90ee22b6c1703490b6512fd",
amount:Moralis.Units.Token("50", "18")}
async function send(){
Moralis.transfer(options);
console.log("Funds Sent!");
}
</script>
</body>
</html>