Ok, so I have this error where it says logic eval error: txn index 1, len(group) is 1. Details: pc=55, opcodes=== && gtxn 1 Amount
and I’m not sure what it’s related to. Here are my conditions:
return Cond(
[And(Or(Gtxn[0].xfer_asset() == Int(31566704), Gtxn[0].xfer_asset() == Int(312769), Gtxn[0].xfer_asset() == Int(465865291)), Gtxn[0].asset_receiver() == Global.current_application_address(), Gtxn[1].amount() == Global.min_txn_fee(), Gtxn[1].receiver() == Global.current_application_address()), to_nusd()],
[And(Gtxn[0].xfer_asset() == Int(657835644), Gtxn[0].asset_receiver() == Global.current_application_address(), Gtxn[1].amount() == Global.min_txn_fee(), Gtxn[1].receiver() == Global.current_application_address()), nusd_to()],
[Txn.sender() == Addr("RABQ4PRRWJDCMHCCCZ24YTLTT44MI4KFZEMRWGFEYESDRBIKD6QFPNNGBQ"), input_ngbp_price()],
[And(Or(Gtxn[0].xfer_asset() == Int(31566704), Gtxn[0].xfer_asset() == Int(312769), Gtxn[0].xfer_asset() == Int(465865291)), Gtxn[2].application_args[0] == Bytes("To_Ngbp"), Gtxn[0].asset_receiver() == Global.current_application_address(), Gtxn[1].amount() == Global.min_txn_fee(), Gtxn[1].receiver() == Global.current_application_address()), to_ngbp()],
[Global.current_application_id() == Int(0), Return(Int(1))],
[Or(Txn.rekey_to() != Global.zero_address(),Txn.on_completion() == OnComplete.CloseOut,Txn.on_completion() == OnComplete.UpdateApplication,Txn.on_completion() == OnComplete.ClearState,Txn.on_completion() == OnComplete.DeleteApplication,Txn.on_completion() == OnComplete.OptIn,Txn.close_remainder_to() != Global.zero_address(),Txn.asset_close_to() != Global.zero_address()), Return(Int(0))]
)