I am creating an inner transaction to opt-in to a ASA from a application creating transaction in PyTeal. I understand that asset array should have the asset id for that. How do I pass the asset id to this asset array so that the inner transaction can use that.
I tried setting TxnField.assets in the inner transaction then i get error : unexpected array field
I tried passing the asset id through parameter Assets in application creating transaction.
I tried passing the asset id through parameter ForeignAssets in application creating transaction. Both these are not recognised in Txn.assets saying invalid Assets index 0