Skip to content

Commit

Permalink
adding foreign app addr to dryrun creator (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin authored Apr 26, 2022
1 parent afd5757 commit 3d387e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions future/dryrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ func CreateDryrun(client *algod.Client, txns []types.SignedTxn, dr *models.Dryru

accts = append(accts, t.Txn.Accounts...)
apps = append(apps, t.Txn.ForeignApps...)

for _, aidx := range t.Txn.ForeignApps {
accts = append(accts, crypto.GetApplicationAddress(uint64(aidx)))
}

assets = append(assets, t.Txn.ForeignAssets...)

if t.Txn.ApplicationID == 0 {
Expand Down

0 comments on commit 3d387e4

Please sign in to comment.