Sending ERC20 Moralis [SOLVED]

Hey guys can someone please help me fgure out the following error :slight_smile:

Trying to send ERC20 tokens from one address to another like ivan explained in the video.


Screen Shot 2021-09-02 at 9.21.10 AM

heres the code

        <title>Moralis Homework</title>

        <script src="[email protected]/dist/web3.min.js"></script>
        <script src=""></script>


        <button onclick="send()">Send Funds</button>


           const options = {type: "token", //DAI
                    contract_address: "0xff795577d9ac8bd7d90ee22b6c1703490b6512fd", 
                    amount:Moralis.Units.Token("50", "18")} 


            async function send(){

                console.log("Funds Sent!");
1 Like

Hi @dexda

Use type: "erc20" instead :man_mechanic:

1 Like

thank you a lot @Yomoo

1 Like