From 3d387e423906f74812ee9cf833c1ab21b6dd23e0 Mon Sep 17 00:00:00 2001 From: Ben Guidarelli Date: Tue, 26 Apr 2022 12:47:08 -0400 Subject: [PATCH] adding foreign app addr to dryrun creator (#312) --- future/dryrun.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/future/dryrun.go b/future/dryrun.go index d3bea403..1fda533f 100644 --- a/future/dryrun.go +++ b/future/dryrun.go @@ -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 {