summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTsachi Herman <tsachi.herman@algorand.com>2022-03-01 14:34:02 -0500
committerGitHub <noreply@github.com>2022-03-01 14:34:02 -0500
commitfe5edb34482537e5bdc78d1fb34019b725b36afc (patch)
tree88e84ec83dbb4fa315abbd037002c72d10212d66
parentdf44eaf0adeb5c0deb08af973691e69440b7e0c8 (diff)
small bugfix. (#3702)feature/unlimited-assets
## Summary AccountApplicationInformation was calling `ledger.LookupResource` with `basics.AssetCreatable` instead of `basics.AppCreatable`, resulting in a consistent failure. ## Test Plan Unit test will follow on a subsequent PR.
-rw-r--r--daemon/algod/api/server/v2/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/algod/api/server/v2/handlers.go b/daemon/algod/api/server/v2/handlers.go
index cff779ce7..003fa8198 100644
--- a/daemon/algod/api/server/v2/handlers.go
+++ b/daemon/algod/api/server/v2/handlers.go
@@ -480,7 +480,7 @@ func (v2 *Handlers) AccountApplicationInformation(ctx echo.Context, address stri
ledger := v2.Node.LedgerForAPI()
lastRound := ledger.Latest()
- record, err := ledger.LookupResource(lastRound, addr, basics.CreatableIndex(applicationID), basics.AssetCreatable)
+ record, err := ledger.LookupResource(lastRound, addr, basics.CreatableIndex(applicationID), basics.AppCreatable)
if err != nil {
return internalError(ctx, err, errFailedLookingUpLedger, v2.Log)
}