#Examples of automatically adding list of resources to app calls
1 messages · Page 1 of 1 (latest)
Have you tried AlgoKit-Utils-TS with populateAppCallResources?
Can you point me to the docs and any examples or explain how it's supposed to be used?
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.
utils ts example: https://github.com/algorand-bootcamp/ts-dm-intermediate-en/blob/b1dfefeaae03dd0beb99479b40dd754f07d8d9c8/projects/digital-marketplace-frontend/src/Home.tsx#L17
utils py don't support it yet. coming soon
But for ts that's it? Nice 😃
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?
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
But how to specify what app call to add?
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?
Yeah, I think so