You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some contracts might want to spec that they require the caller to pay fees for inner transactions, and the number of inner transactions might depend on chain state. So it would be useful to simulate the call, find out how much it would have cost, and then include that in a real call.
A reasonable work-around is to make the simulate call with an extra 1algo fee (really, 256*minFee would be sufficient) and then examine the simulation response to determine how many inners were actually called. Multiply by minfee, and you know how much you actually need to include.
The text was updated successfully, but these errors were encountered:
Some contracts might want to spec that they require the caller to pay fees for inner transactions, and the number of inner transactions might depend on chain state. So it would be useful to simulate the call, find out how much it would have cost, and then include that in a real call.
A reasonable work-around is to make the simulate call with an extra 1algo fee (really, 256*minFee would be sufficient) and then examine the simulation response to determine how many inners were actually called. Multiply by minfee, and you know how much you actually need to include.
The text was updated successfully, but these errors were encountered: