@@ -95,8 +95,8 @@ def optedIn(cls, account: Expr, app: Expr) -> "App":
9595 must be evaluated to uint64 (or, since v4, an application id that appears in
9696 Txn.ForeignApps or is the CurrentApplicationID, must be evaluated to bytes).
9797 """
98- require_type (account . type_of () , TealType .anytype )
99- require_type (app . type_of () , TealType .uint64 )
98+ require_type (account , TealType .anytype )
99+ require_type (app , TealType .uint64 )
100100 return cls (AppField .optedIn , [account , app ])
101101
102102 @classmethod
@@ -109,8 +109,8 @@ def localGet(cls, account: Expr, key: Expr) -> "App":
109109 Txn.Accounts or is Txn.Sender, must be evaluated to bytes).
110110 key: The key to read from the account's local state. Must evaluate to bytes.
111111 """
112- require_type (account . type_of () , TealType .anytype )
113- require_type (key . type_of () , TealType .bytes )
112+ require_type (account , TealType .anytype )
113+ require_type (key , TealType .bytes )
114114 return cls (AppField .localGet , [account , key ])
115115
116116 @classmethod
@@ -126,9 +126,9 @@ def localGetEx(cls, account: Expr, app: Expr, key: Expr) -> MaybeValue:
126126 Txn.ForeignApps or is the CurrentApplicationID, must be evaluated to bytes).
127127 key: The key to read from the account's local state. Must evaluate to bytes.
128128 """
129- require_type (account . type_of () , TealType .anytype )
130- require_type (app . type_of () , TealType .uint64 )
131- require_type (key . type_of () , TealType .bytes )
129+ require_type (account , TealType .anytype )
130+ require_type (app , TealType .uint64 )
131+ require_type (key , TealType .bytes )
132132 return MaybeValue (
133133 AppField .localGetEx .get_op (), TealType .anytype , args = [account , app , key ]
134134 )
@@ -140,7 +140,7 @@ def globalGet(cls, key: Expr) -> "App":
140140 Args:
141141 key: The key to read from the global application state. Must evaluate to bytes.
142142 """
143- require_type (key . type_of () , TealType .bytes )
143+ require_type (key , TealType .bytes )
144144 return cls (AppField .globalGet , [key ])
145145
146146 @classmethod
@@ -153,8 +153,8 @@ def globalGetEx(cls, app: Expr, key: Expr) -> MaybeValue:
153153 Txn.ForeignApps or is the CurrentApplicationID, must be evaluated to uint64).
154154 key: The key to read from the global application state. Must evaluate to bytes.
155155 """
156- require_type (app . type_of () , TealType .uint64 )
157- require_type (key . type_of () , TealType .bytes )
156+ require_type (app , TealType .uint64 )
157+ require_type (key , TealType .bytes )
158158 return MaybeValue (
159159 AppField .globalGetEx .get_op (), TealType .anytype , args = [app , key ]
160160 )
@@ -170,9 +170,9 @@ def localPut(cls, account: Expr, key: Expr, value: Expr) -> "App":
170170 key: The key to write in the account's local state. Must evaluate to bytes.
171171 value: The value to write in the account's local state. Can evaluate to any type.
172172 """
173- require_type (account . type_of () , TealType .anytype )
174- require_type (key . type_of () , TealType .bytes )
175- require_type (value . type_of () , TealType .anytype )
173+ require_type (account , TealType .anytype )
174+ require_type (key , TealType .bytes )
175+ require_type (value , TealType .anytype )
176176 return cls (AppField .localPut , [account , key , value ])
177177
178178 @classmethod
@@ -183,8 +183,8 @@ def globalPut(cls, key: Expr, value: Expr) -> "App":
183183 key: The key to write in the global application state. Must evaluate to bytes.
184184 value: THe value to write in the global application state. Can evaluate to any type.
185185 """
186- require_type (key . type_of () , TealType .bytes )
187- require_type (value . type_of () , TealType .anytype )
186+ require_type (key , TealType .bytes )
187+ require_type (value , TealType .anytype )
188188 return cls (AppField .globalPut , [key , value ])
189189
190190 @classmethod
@@ -197,8 +197,8 @@ def localDel(cls, account: Expr, key: Expr) -> "App":
197197 Txn.Accounts or is Txn.Sender, must be evaluated to bytes).
198198 key: The key to delete from the account's local state. Must evaluate to bytes.
199199 """
200- require_type (account . type_of () , TealType .anytype )
201- require_type (key . type_of () , TealType .bytes )
200+ require_type (account , TealType .anytype )
201+ require_type (key , TealType .bytes )
202202 return cls (AppField .localDel , [account , key ])
203203
204204 @classmethod
@@ -208,7 +208,7 @@ def globalDel(cls, key: Expr) -> "App":
208208 Args:
209209 key: The key to delete from the global application state. Must evaluate to bytes.
210210 """
211- require_type (key . type_of () , TealType .bytes )
211+ require_type (key , TealType .bytes )
212212 return cls (AppField .globalDel , [key ])
213213
214214
@@ -224,7 +224,7 @@ def approvalProgram(cls, app: Expr) -> MaybeValue:
224224 app: An index into Txn.ForeignApps that correspond to the application to check.
225225 Must evaluate to uint64.
226226 """
227- require_type (app . type_of () , TealType .uint64 )
227+ require_type (app , TealType .uint64 )
228228 return MaybeValue (
229229 Op .app_params_get ,
230230 TealType .bytes ,
@@ -240,7 +240,7 @@ def clearStateProgram(cls, app: Expr) -> MaybeValue:
240240 app: An index into Txn.ForeignApps that correspond to the application to check.
241241 Must evaluate to uint64.
242242 """
243- require_type (app . type_of () , TealType .uint64 )
243+ require_type (app , TealType .uint64 )
244244 return MaybeValue (
245245 Op .app_params_get ,
246246 TealType .bytes ,
@@ -256,7 +256,7 @@ def globalNumUnit(cls, app: Expr) -> MaybeValue:
256256 app: An index into Txn.ForeignApps that correspond to the application to check.
257257 Must evaluate to uint64.
258258 """
259- require_type (app . type_of () , TealType .uint64 )
259+ require_type (app , TealType .uint64 )
260260 return MaybeValue (
261261 Op .app_params_get ,
262262 TealType .uint64 ,
@@ -272,7 +272,7 @@ def globalNumByteSlice(cls, app: Expr) -> MaybeValue:
272272 app: An index into Txn.ForeignApps that correspond to the application to check.
273273 Must evaluate to uint64.
274274 """
275- require_type (app . type_of () , TealType .uint64 )
275+ require_type (app , TealType .uint64 )
276276 return MaybeValue (
277277 Op .app_params_get ,
278278 TealType .uint64 ,
@@ -288,7 +288,7 @@ def localNumUnit(cls, app: Expr) -> MaybeValue:
288288 app: An index into Txn.ForeignApps that correspond to the application to check.
289289 Must evaluate to uint64.
290290 """
291- require_type (app . type_of () , TealType .uint64 )
291+ require_type (app , TealType .uint64 )
292292 return MaybeValue (
293293 Op .app_params_get ,
294294 TealType .uint64 ,
@@ -304,7 +304,7 @@ def localNumByteSlice(cls, app: Expr) -> MaybeValue:
304304 app: An index into Txn.ForeignApps that correspond to the application to check.
305305 Must evaluate to uint64.
306306 """
307- require_type (app . type_of () , TealType .uint64 )
307+ require_type (app , TealType .uint64 )
308308 return MaybeValue (
309309 Op .app_params_get ,
310310 TealType .uint64 ,
@@ -320,7 +320,7 @@ def extraProgramPages(cls, app: Expr) -> MaybeValue:
320320 app: An index into Txn.ForeignApps that correspond to the application to check.
321321 Must evaluate to uint64.
322322 """
323- require_type (app . type_of () , TealType .uint64 )
323+ require_type (app , TealType .uint64 )
324324 return MaybeValue (
325325 Op .app_params_get ,
326326 TealType .uint64 ,
@@ -336,7 +336,7 @@ def creator(cls, app: Expr) -> MaybeValue:
336336 app: An index into Txn.ForeignApps that correspond to the application to check.
337337 Must evaluate to uint64.
338338 """
339- require_type (app . type_of () , TealType .uint64 )
339+ require_type (app , TealType .uint64 )
340340 return MaybeValue (
341341 Op .app_params_get , TealType .bytes , immediate_args = ["AppCreator" ], args = [app ]
342342 )
@@ -349,7 +349,7 @@ def address(cls, app: Expr) -> MaybeValue:
349349 app: An index into Txn.ForeignApps that correspond to the application to check.
350350 Must evaluate to uint64.
351351 """
352- require_type (app . type_of () , TealType .uint64 )
352+ require_type (app , TealType .uint64 )
353353 return MaybeValue (
354354 Op .app_params_get , TealType .bytes , immediate_args = ["AppAddress" ], args = [app ]
355355 )
0 commit comments