Skip to content

Commit e46f02a

Browse files
authored
using the appIdx instead of txn app id (#2720)
Passing a foreign app id to the `goal app create` cmd with dryrun tries to use ApplicationId (0) instead of the foreign app id.
1 parent 9194dec commit e46f02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libgoal/libgoal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ func MakeDryrunStateGenerated(client Client, txnOrStxn interface{}, other []tran
10351035
} else {
10361036
// otherwise need to fetch app state
10371037
var app generatedV2.Application
1038-
if app, err = client.ApplicationInformation(uint64(tx.ApplicationID)); err != nil {
1038+
if app, err = client.ApplicationInformation(uint64(appIdx)); err != nil {
10391039
return
10401040
}
10411041
appParams = app.Params

0 commit comments

Comments
 (0)