I know how to use web3 to send USDC tokens from one address to another, by using "web3.eth.Contract (ContractABI, ContractAddress) to create a Contract object, and then creating a data object like so:
var objData = objContract.methods.transfer( DestinationAddress, AmountToTransfer ).encodeABI()
I now need to send the USDC tokens to a contract function, instead of an address. The contract function requires three input parameters.
I assume that I need to create a second Contract object (for the destination contract), but I don't know how to insert the call to the 2nd contract (with the three input parameters), within the var objData = objContract.methods.transfer code shown above.
I am not able to modify the 2nd contract. I have its ABI, so I know how to call its functions.