I approve the contract address for the tokens of some wallet address to send the tokens. Now, how can i call the transfer function using contract address. Thanks in advance.
function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); allowed[msg.sender][to] = tokenId; _approve(to, tokenId); } function _transferFrom( address _from, address _to, uint256 _amount ) public returns (bool ) { // balances[_from] -= _amount; allowed[_from][msg.sender] -= _amount; _transfer(_from, _to, _amount); return true; } how can i call the transfer function using contract address?