I have simple contract and it has a function to call ERC20 token contract:
function _approve(uint256 amount, address to) external payable returns (bool){
(bool ok,) =
linkTokenAddress.call(abi.encodeWithSignature("approve(address, uint256)",to ,amount));
return ok;
}
But when i call this function, it reverts. what is the problem?
this is a tx details you can check