Skip to content

Commit

Permalink
small bugfix. (#3702)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
tsachiherman authored Mar 1, 2022
1 parent df44eaf commit fe5edb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/algod/api/server/v2/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fe5edb3

Please sign in to comment.