is it possible to have multiple types of incomming transactions as arc4 parameter for the method?
addLiquidity(
aXfer: AssetTransferTxn | PayTxn,
bXfer: AssetTransferTxn | PayTxn,
poolAsset: AssetID,
aAsset: AssetID,
bAsset: AssetID
): void {
What is the best way to check if the transaction is asset transfer or pay tx?
I would use the more general type
Txnand then check whether it is anAssetTransferTxnor aPayTxnwithin the method.