function deposition(address _tokenAddress,uint256 amount)public payable { IERC20 token = IERC20(_tokenAddress); token.approve(address(this),amount); token.transferFrom(msg.sender,address(this),amount); }
以上是我写的ERC20向合约地址转账的代码,转账失败。您能否看出是什么问题?