其他代币合约账户用以下代码也能正确授权,就某一个代币不行
代码如下
function approve(address _tokenContract, address _spender, uint256 _amount) public { IERC20 token = IERC20(_tokenContract); token.approve(_spender, _amount); }