out of curiosity, is it possible to use call for ERC20 token transfer? I always use transfer for ERC20 tokens and call for eth. on the native token depending on the evm chain. @cryptokid
can you give an example? I donβt know on what you are referring now
this (IERC20(_token).transfer(_withdrawerAddress, _amount
) vs (bool sent, ) = _to.call{value:_value}('')
what is the best way of transferring an ERC20 token?
this is a question specific to solidity?
Yes.
does the forum allow engaging in solidity questions as well?
yes, you can ask solidity questions, I donβt know what is the best option now
1 Like
You can also ask in the #smart-contract-help channel on the Moralis Discord.
what is the best way of transferring an ERC20 token?
Using transfer
/ transferFrom
which are standard methods. But using call should be possible.
1 Like