Hey!
This is my code for sending ERC20 tokens:
async function sendTokens() {
const options = {
type: "erc20",
amount: Moralis.Units.Token("5", "18"),
contractAddress: "0x....",
receiver: "0x...",
awaitReceipt: false
}
let result = await Moralis.transfer(options)
result.on("receipt", (receipt) => console.log(receipt))
.on("transactionHash", (hash) => console.log(hash))
}
It works great with Metamask on test (BSC test net) and real BSC.
Problem:
When I want to use WalletConnect to send tokens, then I go through authentication (scan the QR code using my smartphone) and connect successfully.
When I want to send tokens and call the code that I attached, nothing happens.
I am online almost always and look forward to your reply or help.
I will provide any additional data from my web application upon request! Thanks!