#Examples of automatically adding list of resources to app calls

1 messages · Page 1 of 1 (latest)

old grove
#

Are there any examples on how to use simulate to automatically add the list of resources to app calls - both with Python and TS SDKs?
I'd like to use it to automatically extend then number of app calls to fit all the needed resources.

icy gust
old grove
old grove
#

I've checked npmjs for algokit-utils but the docs link throws 404.
I also didn't find any mention in algokit-utils-py docs.

acoustic geyser
old grove
#

Could you also give an example what to do in the case, where the app resources don't fit in a single app call and I have to add an additional one to the gtxn to fit them?

acoustic geyser
#

yup. just include that one line at the top level of your app and boom. automatic resource population

#

automatic population should support that case as well

old grove
#

Or do you mean that it populates the resources after I explicitly add the additional call to the gtxn?
So I should first try without the additional app call, simulate it explicitly, check if it fails due to lack of resources, and then create another gtxn with the additional app call?