I have a little question about the PyTeal syntax. What is the purpose of defining an array of foreign apps when deploying the smart contract, if i can’t use it inside the smart contract? In fact, the PyTeal documentation says that you need to explicitly use the app-id of the external app you want to access.
Ex: App.localGetEx(Int(0), Int(42), Bytes(“key”))
where ‘Int(42)’ is the id of the application to read from. Why can’t i just pass the index of the foreignApps array instead? (Like i do for Txn.application_args array)