Closed webdevalgo closed 7 months ago
Currently you can pass the ATC to populateAppCallResources
which will return a new ATC with the same tx group + references. I agree though that it would be nice to have a way to do this automatically.
You can also use .compose
to compose multiple calls together into one atomic group :)
Getting this error with populateAppCallResources()
Box ref with appId xxxxxx not in foreign-apps
Problem
Currently calling a method on client generate just sends transactions to the blockchain but there can be cases where it would be very useful to call two or many methods on that client in same txn group.
For example: Trying to call
client.approve()
andclient.sell()
, has to be in two different txn groups.Solution
We can add an option to method calls so it returns array of txns instead of sending it to the blockchain.