From 98b8e1fac052e1b3438db09f312a1e64d4eb5fa8 Mon Sep 17 00:00:00 2001 From: Ben Guidarelli Date: Wed, 9 Feb 2022 11:46:11 -0500 Subject: [PATCH] fix docs referencing what apps should eval to (#191) --- pyteal/ast/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyteal/ast/app.py b/pyteal/ast/app.py index b8c49ab45..23e265094 100644 --- a/pyteal/ast/app.py +++ b/pyteal/ast/app.py @@ -93,7 +93,7 @@ def optedIn(cls, account: Expr, app: Expr) -> "App": Txn.Accounts or is Txn.Sender, must be evaluated to bytes). app: An index into Txn.ForeignApps that corresponds to the application to read from, must be evaluated to uint64 (or, since v4, an application id that appears in - Txn.ForeignApps or is the CurrentApplicationID, must be evaluated to bytes). + Txn.ForeignApps or is the CurrentApplicationID, must be evaluated to int). """ require_type(account, TealType.anytype) require_type(app, TealType.uint64) @@ -123,7 +123,7 @@ def localGetEx(cls, account: Expr, app: Expr, key: Expr) -> MaybeValue: Txn.Accounts or is Txn.Sender, must be evaluated to bytes). app: An index into Txn.ForeignApps that corresponds to the application to read from, must be evaluated to uint64 (or, since v4, an application id that appears in - Txn.ForeignApps or is the CurrentApplicationID, must be evaluated to bytes). + Txn.ForeignApps or is the CurrentApplicationID, must be evaluated to int). key: The key to read from the account's local state. Must evaluate to bytes. """ require_type(account, TealType.anytype)